Auto 'Back' button on nested pages.
Permalink
Hi Guys, this might or might not be possible.
I have a site that I want to build in Concrete, but on third level pages we want a 'back' button to appear instead of displaying the third level in the navigation.
Is this possible?
Thanks
I have a site that I want to build in Concrete, but on third level pages we want a 'back' button to appear instead of displaying the third level in the navigation.
Is this possible?
Thanks
Although this is an old reply I just used it and it works.
Thank you to the original contributor....?Chris
Thank you to the original contributor....?Chris
If you want the "back" button to link to the parent page, you can add some code to your page type template:
http://c5cookbook.com/recipes/link_to_parent_page...
-Jordan
http://c5cookbook.com/recipes/link_to_parent_page...
-Jordan
<!--- HTML Version. You can use your own graphic-->
<a href="#" onClick="history.go(-1)">Back</a>
<!-- Form Button--->
<input type=button value="Back" onClick="history.go(-1)">
My only warning is that is only goes to the previous page in the browser history so if someone enters your third level page from a third party link and they hit the "back" button, they go back to the previous site. It also gets wonky when you using it as your developing otherwise, it works nicely!