Forums / Basic Configuration / About sideboxes and EZpages

About sideboxes and EZpages

Locked

Started by sukhada on 17 Jan 2007, 8:48 AM · Views: 3,012

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
17 Jan 2007, 8:48 AM
#1
sukhada avatar

sukhada

New Zenner

Join Date:
Jan 2007
Posts:
5
Plugin Contributions:
0

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...........

17 Jan 2007, 12:16 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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.

Kuroi Web Design and Development | Twitter

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

18 Jan 2007, 6:33 AM
#3
sukhada avatar

sukhada

New Zenner

Join Date:
Jan 2007
Posts:
5
Plugin Contributions:
0

Re: About sideboxes and EZpages

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

27 Jan 2007, 5:30 AM
#4
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: About sideboxes and EZpages

kuroi:

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

 
 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

27 Jan 2007, 1:49 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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

Kuroi Web Design and Development | Twitter

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

27 Jan 2007, 7:02 PM
#6
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: About sideboxes and EZpages

kuroi:

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

1 Feb 2007, 11:45 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: About sideboxes and EZpages

bettysue:

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.

Kuroi Web Design and Development | Twitter

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

2 Feb 2007, 12:01 AM
#8
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: About sideboxes and EZpages

kuroi:

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

2 Feb 2007, 12:08 AM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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/

Kuroi Web Design and Development | Twitter

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

2 Feb 2007, 12:15 AM
#10
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: About sideboxes and EZpages

kuroi:

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

2 Feb 2007, 8:59 AM
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: About sideboxes and EZpages

If you are actually modifying the behavior your EZ-Pages sidebox itself, then yes. If it's the behavior of other sideboxes on EZ-Pages that you are changing, then it would be the filename of the sidebox module that you have edited.

Kuroi Web Design and Development | Twitter

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

2 Feb 2007, 9:03 AM
#12
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: About sideboxes and EZpages

Thank you again Kuroi,

that helped clarify the page naming scheme.

betty