Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Expandable links within EZ Pages

Expandable links within EZ Pages

Views: 763

Results 1 to 4 of 4
1 Mar 2011, 3:46 PM
#1
adem_i avatar

adem_i

New Zenner

Join Date:
Jul 2010
Location:
Sydney, Australia
Posts:
86
Plugin Contributions:
0

Expandable links within EZ Pages

Hello,

Is it possible to have text that expands once clicked on to show more text with a slight indentation.

For example, within a Help section, there are 10 main categories. If a user clicks one one of those Categories, the rest of the questions will appear beneath it and retract if the user clicks that same category again or if another category is selected. Are there any add ons or snippets of code I can use to do this?

thanks in advance,
adem

1.3.9h

1 Mar 2011, 3:56 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Expandable links within EZ Pages

Expandable sections on click would require javascript. You can't use PHP in ez-pages. CSS could make expandable sections on hover but not on click.

Google for click-show-hide or accordion menus.

2 Mar 2011, 8:47 AM
#3
adem_i avatar

adem_i

New Zenner

Join Date:
Jul 2010
Location:
Sydney, Australia
Posts:
86
Plugin Contributions:
0

Re: Expandable links within EZ Pages

i see. are these things you recommended able to be done with zen cart?

is it possible to maybe create the list of questions then when someone clicks on one, it links to a certain part in the page?

2 Mar 2011, 11:09 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Expandable links within EZ Pages

Google "anchor link on same page" for lots of instructions on how to do this.

You can use javascript in ez-pages; look in the wiki for information on including js without having to put it directly in page content.