Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    28
    Plugin Contributions
    0

    Default Home Page Generation

    I'm starting to work through the templates to get a better feel for this tool. I could use a hand to better understand how the index page is assembled. What function or .js is it that calls the templates and css files that assemble the index page? I'm sure there is a guide available located w/in this forum that I have yet to uncover. leads / links welcome. Thanks in advance!!

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Home Page Generation

    Everything starts from the main 'index.php' file located in your Zen Cart directory. Using that, one can see where various files are pulled from. Does require a fairly good knowledge of PHP though.

  3. #3
    Join Date
    Jan 2008
    Posts
    28
    Plugin Contributions
    0

    Default Re: Home Page Generation

    I guess we'll see what level of .php skills I have. Where I'm lacking, it appears this forum will be a great place to learn. Any good step-by-steps been created w/in this site that specifically address the modification of the root index page? I see that the index file is very well commented.

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Home Page Generation

    What are you wanting to do specifically?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Jan 2008
    Posts
    28
    Plugin Contributions
    0

    Default Re: Home Page Generation

    I'm looking at completely removing the table elements from the tpl_main_page.php template to be replaced with 100% css. It's not imperative that I do this. I would just prefer working outside of a table layout.

  6. #6
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Home Page Generation

    Look at the files in includes/templates/common, you will find most tables there.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  7. #7
    Join Date
    Jan 2008
    Posts
    28
    Plugin Contributions
    0

    Default Home Page Generation - cont..

    Perhaps this question is more difficult to answer than simply providing a file reference. What file or function calls the stylesheet.css file? I looked w/in the index page, but did not find a reference. I'm average on reading .php, so perhaps I overlooked the reference.

    I asked this question in a previous post and was replied to with a question as to why I wanted to this information. My request is part of my gaining a better overall understanding of the structure and function of this tool.

    Thanks in advance

  8. #8
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Home Page Generation - cont..

    I'm new to zen trying to get a feel also. It looks like the style sheets are called from the html_header.php file.

    /includes/templates/template_default/common/html_header.php

    If you look, you'll see comments like:
    • load all template-specific stylesheets, named like "style*.css", alphabetically
    • load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza.


    Hope that helps. Scott

  9. #9
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Home Page Generation

    Please do not start a new thread to continue an existing topic. Thanks. Your threads have been merged together.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Home Page Generation - cont..

    The PHP code, when building the HTML output, does a set of lookups and decides which stylesheets to apply to the current page. There is no reason to tinker with this or try to understand the mechanics unless you are a skilled PHP coder. The order and logic of which stylesheets are called is useful to know, and described in forum posts and the wiki, and in /template_default/css/CSS_read_me.

    The HTML calls the stylesheets using the <link rel="stylesheet" ... > tag in the head of the output.

    After this, there is no need for elements to call a stylesheet; that is automatic by the structure of HTML.
    Last edited by gjh42; 21 Jan 2008 at 07:35 PM.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. home page text and footer do not show on home page
    By terrancesmith98 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Oct 2010, 01:45 AM
  2. Help connecting my flash home page to my shop home page...
    By BenhamCollectibles in forum General Questions
    Replies: 19
    Last Post: 8 Dec 2009, 09:36 PM
  3. Auto redirect from home page to zen cart home
    By gizmo_girl in forum Basic Configuration
    Replies: 5
    Last Post: 4 Nov 2008, 03:46 PM
  4. My Home Page is not the original home page- Help!
    By Pet Herbal Remedies in forum General Questions
    Replies: 4
    Last Post: 22 Aug 2008, 11:15 PM
  5. Another request for a home page link to my real home page
    By thesoundsmith in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 19 Jun 2008, 09:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg