Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2008
    Posts
    23
    Plugin Contributions
    0

    Default What are the roles of CSS, Admin, and tpl_ files in design?

    Hi everyone - Ideally, we’d like to use DIV-based CSS for the entire layout of my ZC site, but after reading this post - http://www.zen-cart.com/forum/showth...s+divs+tables* - I gather that this is coming in version 1.4 (any idea when that’s coming out?)
    So, from what I understand, for design purposes, Zencart site design is created using a combination of CSS, Admin, and Templates (the tpl_ files). What I am trying to figure out is what is the role that each of these plays?

    Thanks in advance for your help!

    Jason

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: What are the roles of CSS, Admin, and tpl_ files in design?

    Most of your design elements can be controlled by the css files (stylesheet.css)

    The Admin Panel also influences design, such as whether an element is displayed (used) or not. Also, image dimensions are controlled here.

    You can make adjustments to tpl_xxxxxxxxxxx.php files to re-arrange elements (such as in tpl_product_info_display.php).

    For the most part, the design (aesthetics) is managed by the CSS.

  3. #3
    Join Date
    Nov 2008
    Posts
    23
    Plugin Contributions
    0

    Default Re: What are the roles of CSS, Admin, and tpl_ files in design?

    Thanks!

    Can we get rid of the left and right colums and just work within the center column to mimic a completely DIV-based layout?

    Jason

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: What are the roles of CSS, Admin, and tpl_ files in design?

    You can disable the left and/or right columns in Admin>>>Layout Settings

    Column Left Status - Global
    Column Right Status - Global

    Be aware, however, that this will also affect the display of sideboxes - some of which display essential links (categories, site information, etc).

    I generally disable either right or left, then configure whatever sideboxes I need to display in the available column. This gives me a wider, cleaner space for the display of product info, etc.

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: What are the roles of CSS, Admin, and tpl_ files in design?

    You can also disable column display by page-specific limitations, and these are governed by editing:

    tpl_main_page.php (in the COMMON folder of your template directory).

    Instructions on how to do this are embedded within that php file.

    For ezpages, limiting left and right column displays are controlled in admin>>>configuration>>>ezpages settings

 

 

Similar Threads

  1. What to name the CSS files for Product pages?
    By thebigkick in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 10 Jan 2012, 05:33 PM
  2. Replies: 9
    Last Post: 4 Jan 2012, 03:43 AM
  3. CSS files are loading twice,normal and minimized,how to solve?
    By Rimo in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Mar 2011, 11:55 PM
  4. What files are required to create an admin module from scratch?
    By mohammedsk in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 2 Jan 2010, 10:56 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