Results 1 to 6 of 6
  1. #1
    Join Date
    May 2010
    Posts
    24
    Plugin Contributions
    0

    Default Add a BACK button to an EZ Page?

    I thought I could add the following to the bottom of an EZ page I made to get a back button, but all it shows is ’; ?>

    Code:
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
    Any ideas on how to add the 'back' button to an EZ page?

    Thanks!

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Add a BACK button to an EZ Page

    It's easier to add a HTML expression in EZPages, because their content is stored in the database and is parsed into the page AFTER the rest of the php compiles it. (There is a work-around, but its complex.)

    In your EZPAGE editor screen, toggle to HTML (page code) mode, and put this at the bottom.

    If you go a step further and encase it in a <DIV> with an ID, then you can style it in the stylesheet.
    HTML Code:
    <FORM>
    <INPUT type="button" value="Click here to go back" onClick="history.back()">
    </FORM>
    HTML Code:
    <div id="myBackButton">
    <FORM>
    <INPUT type="button" value="Click here to go back" onClick="history.back()">
    </FORM> 
    </div>
    history.go(-1) or history.go(1)
    This allows you to determine how far forward or back to take the viewer. Use a minus sign and a number to go back, or just a number to go forward.
    20 years a Zencart User

  3. #3
    Join Date
    May 2010
    Posts
    24
    Plugin Contributions
    0

    Default Re: Add a BACK button to an EZ Page

    Thank you for your response.

    Your method does indeed provide a "Back" button however, what I was wanting to be able to use my button_back.gif so it would match the rest of the pages.

    So I ended up doing the following which seems to work.

    <IMG SRC="/includes/templates/MYTEMPLATE/buttons/english/button_back.gif" style="cursor: pointer;cursor:hand" ALT="Back" onclick="history.go(-1)" name="Back" value="Back">

    Thanks again for your suggestion and time.
    Last edited by thelawman; 29 May 2010 at 04:24 AM. Reason: found solution

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Add a BACK button to an EZ Page

    Take time to read this thread, it might help out..
    I am not getting the Alt tag with your code above.
    Nice clean site, looks sharp..
    Last edited by haredo; 29 May 2010 at 04:34 AM.

  5. #5
    Join Date
    May 2010
    Posts
    24
    Plugin Contributions
    0

    Default Re: Add a BACK button to an EZ Page

    Thank you!

    I added title="Back" and am getting the desired effect.

  6. #6
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

 

 

Similar Threads

  1. Replies: 2
    Last Post: 3 Mar 2016, 10:02 PM
  2. v151 How to link "Back to Product List" button back to last page history
    By sports guy in forum General Questions
    Replies: 3
    Last Post: 28 Feb 2015, 11:11 AM
  3. v139h add extra back button on mainpages
    By elbert06 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 2 Sep 2012, 11:27 PM
  4. v150 Add back button to my EZ pages?
    By Phil020782 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Aug 2012, 10:42 AM
  5. Add a back button in checkout process
    By soki in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Mar 2009, 07:10 AM

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