Zen Cart Logo
Forums / Customization from the Admin / Back button for EZ Pages

Back button for EZ Pages

Locked

Views: 2,004

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
16 Feb 2010, 8:11 PM
#1
tryphon avatar

tryphon

New Zenner

Join Date:
Mar 2008
Location:
Brussels, Belgium
Posts:
69
Plugin Contributions:
0

Back button for EZ Pages

I have EZ Pages that are chained together , i.e. EZ Page#1 has a link to EZ Page#2. I would like to have one back button on each of these pages. The back button on EZ Page#2 should lead to EZ Page#1. The back button on EZ Page#1 should lead to the page from which it was called (i.e. the Home Page or another page, like the Contact Us page).

Is there a way to do this?

Can somebody provide me with a general code to implement this?
Stated otherwise, is there a way to know, when on one a specific page, the id of the page from which we are coming?

I know ZC works this way but I could not find the way to implement this.

Thanks.

28 Feb 2010, 6:15 AM
#2
alray10 avatar

alray10

New Zenner

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

Re: Back button for EZ Pages

tryphon:

I have EZ Pages that are chained together , i.e. EZ Page#1 has a link to EZ Page#2. I would like to have one back button on each of these pages. The back button on EZ Page#2 should lead to EZ Page#1. The back button on EZ Page#1 should lead to the page from which it was called (i.e. the Home Page or another page, like the Contact Us page).

Is there a way to do this?

Can somebody provide me with a general code to implement this?
Stated otherwise, is there a way to know, when on one a specific page, the id of the page from which we are coming?

I know ZC works this way but I could not find the way to implement this.

Thanks.
A easy way to do this would be put this code in the EZ Page

<form> <input type="button" onclick="history.go(-1)" name="GOBACK" value="Go Back" /> </form>

You can change the Value to say what ever you want on the button.

28 Feb 2010, 6:18 AM
#3
alray10 avatar

alray10

New Zenner

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

Re: Back button for EZ Pages

If you want to be able to go back and forwards you can use this code in your EZ pages.
Note this must be put in source mode.
> <FORM>

<INPUT TYPE="BUTTON" NAME="GOBACK" VALUE="Go Back" OnClick="history.go(-1)"> </FORM>

<A HREF="javascript:history.go(-1)">Go back.</A>
<A HREF="javascript:history.go(1)">Go forward.</A>

28 Feb 2010, 1:16 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Back button for EZ Pages

Or, if you have multiple pages 'under' one main EZ page, you could code a button image using HTML with a direct path to the main EZ page.

21 Mar 2010, 10:11 AM
#5
tryphon avatar

tryphon

New Zenner

Join Date:
Mar 2008
Location:
Brussels, Belgium
Posts:
69
Plugin Contributions:
0

Re: Back button for EZ Pages

Thanks to all for these suggestions.