Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jan 2007
    Posts
    5
    Plugin Contributions
    0

    Default About sideboxes and EZpages

    My problem is...
    I am designing a site.
    There are 5 Ezpages in my header. I wish to design a separete left and right side menu for each ezpage. for ex, 1st EZpage in header needs category box but remaining 4 pages dont need categories. like wise... can i define separate left and right side menu for each EZPage.... and if posible.... how this is done?
    Thanks.
    Hope to get reply...........

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

    Default Re: About sideboxes and EZpages

    This is a fairly complicated process and the exact solution will depend on specifically what you wish to do. But it's a good question, and worth of a FAQ entry, so here it is. Please come back here if you need further clarification.
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jan 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: About sideboxes and EZpages

    It worked........
    Thanks a lot Friend.........!!!

  4. #4
    Join Date
    May 2004
    Posts
    777
    Plugin Contributions
    0

    Default Re: About sideboxes and EZpages

    Quote Originally Posted by kuroi View Post
    This is a fairly complicated process and the exact solution will depend on specifically what you wish to do. But it's a good question, and worth of a FAQ entry, so here it is. Please come back here if you need further clarification.
    Even though I didn't ask the original question, I did read the FAQ tutorial on having different sideboxes show up on different ez pages. That's how I found this thread as I didn't understand it fully.

    from the tutorial:
    ---------------
    You will need to wrap this in a conditional statement such as
    Code:
     
     if (!isset($ez_page_id) || !in_array($ezpage_id,explode(",",'2,5'))) {
        require($template->get_template_dir('tpl_order_history.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_order_history.php');
        $title =  BOX_HEADING_CUSTOMER_ORDERS;
        $title_link = false;
        require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
     }
    This condition means that the template to display the sidebox will be called whenever the page is not an EZ-Page or, if it is an EZ-Page, it does not have ID 2 or 5.

    Finally, and importantly, don't forget to save your result in an over-ride file.
    ---------------------------------

    1. what do the (,,2,5) represent?
    2. the example is to make a side box not show up, what makes a side box show up that isn't on except for the designated ez-page?
    3. Where do you find the ez=page ID (in this example) 2 and 5?
    4. Where would you save the override file to and what would be the naming scheme?
    5. Does this file need to be referenced in any other file in order to work?

    thank you,

    betty
    Last edited by bettysue; 27 Jan 2007 at 06:31 AM. Reason: did the code tags wrong

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

    Default Re: About sideboxes and EZpages

    Hi Bettysue

    Taking your questions in turn

    1. The first comma is the the string delineator that tells PHP how the page EZ-Page IDs have been separated. The 2 and the 5 are example IDs.

    2. Turn the condition and use somethink like
    if (ezpage_id=42) {
    3. Admin > Tools > EZ-Pages > 1st column

    4 and 5. Rather than regurgitating what has already been well-written, I recommend reading this FAQ entry
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    May 2004
    Posts
    777
    Plugin Contributions
    0

    Default Re: About sideboxes and EZpages

    Quote Originally Posted by kuroi View Post
    Hi Bettysue

    Taking your questions in turn

    1. The first comma is the the string delineator that tells PHP how the page EZ-Page IDs have been separated. The 2 and the 5 are example IDs.

    2. Turn the condition and use somethink like
    3. Admin > Tools > EZ-Pages > 1st column

    4 and 5. Rather than regurgitating what has already been well-written, I recommend reading this FAQ entry
    Thank you Kuroi, however I think I worded some of my questions wrong.

    4 and 5: I'm well versed in the override system as I use it on every store I install. What I don't understand is what to name the pages, i.e. are they tpl pages, language pages, module pages, etc. Once I know what type of pages they are, I'll probably know where they go.

    thank you!

    betty

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

    Default Re: About sideboxes and EZpages

    Quote Originally Posted by bettysue View Post
    What I don't understand is what to name the pages, i.e. are they tpl pages, language pages, module pages, etc. Once I know what type of pages they are, I'll probably know where they go.
    Sorry Bettysue, I don't know to what pages you are referring.
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #8
    Join Date
    May 2004
    Posts
    777
    Plugin Contributions
    0

    Default Re: About sideboxes and EZpages

    Quote Originally Posted by kuroi View Post
    Sorry Bettysue, I don't know to what pages you are referring.
    From the bottom of the tutorial:

    "This condition means that the template to display the sidebox will be called whenever the page is not an EZ-Page or, if it is an EZ-Page, it does not have ID 2 or 5. You can find the IDs of your EZ-Pages by going to Admin > Tools > EZ-Pages where the ID for each page is displayed in the first column.

    Finally, and importantly, don't forget to save your result in an over-ride file."

    What do I name the override file, where do I put the override file? I already know it would go into one of my template folders, question is which one?

    betty

  9. #9
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

    Default Re: About sideboxes and EZpages

    Ah. I wasn't referring there to pages, but to the sidebox modules files in which the php change is made. The override files for these would go in includes/modules/sideboxes/YOUR_TEMPLATE_NAME/
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  10. #10
    Join Date
    May 2004
    Posts
    777
    Plugin Contributions
    0

    Default Re: About sideboxes and EZpages

    Quote Originally Posted by kuroi View Post
    Ah. I wasn't referring there to pages, but to the sidebox modules files in which the php change is made. The override files for these would go in includes/modules/sideboxes/YOUR_TEMPLATE_NAME/
    so you would save it as the modules/sideboxes/custom/ezpages.php?

    betty

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Ezpages header Link color
    By gate13 in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 2 Jul 2007, 08:40 AM
  2. header, footer, sideboxes, link from different directory
    By greatbig47 in forum General Questions
    Replies: 0
    Last Post: 11 Oct 2006, 10:03 PM

Bookmarks

Posting Permissions

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