The Thinkery

Not finding what you're looking for? Don't hesitate to contact us!

Before Posting...

Before posting questions in the forums, please be sure to read the FAQs by clicking on the FAQs link in the sidebar product menu. You must be logged in and have a valid subscription to access the SUPPORT FORUMS.
×
Support Policy Notice

As outlined in our Rules section (though never closely followed by our staff!), effective immediately we will no longer be taking time to provide customizations of our products.

Integration of a javascript back button

  • heidemann
  • heidemann's Avatar Topic Author
  • Offline
  • Puzzler
  • Puzzler
More
10 years 6 months ago #16614 by heidemann
heidemann created the topic: Integration of a javascript back button
i would like to build in a "back-button" where can i include a back button? i made for a customer a up to 5 levelsystem - sometimes its quite hard to get back from the various levels.

project with links to subprojects -
subprojects listet as categories
categories linked to categorie subprojects
and subprojects linking to subprojectcategories with another subprojects
i.e.: Projects - Project 1 - Project 1 Overview - Project 1 Subprojects

thanks in advance

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #16663 by vinny
vinny replied the topic: Re: Integration of a javascript back button
Hi - the easiest way to create a back button on every page would probably be to build the 'back' link html in the front end controller (com_projectlog/controller.php). Add a div with the link just before the 'parent::display()' code. For example something like:
echo '<div><a href="javascript:history.back();">'.JText::_( 'Back' ).'</a></div>';
parent::display();
Of course you could add a css class to the div or customize however you'd like, but this should give you a basic back link above the component display. Hope this helps. Let us know questions. Thanks.

Vinny - The Thinkery
Good reviews on the JED make us work harder :) | IProperty | Work Force | Report Card

Please Log in or Create an account to join the conversation.

  • heidemann
  • heidemann's Avatar Topic Author
  • Offline
  • Puzzler
  • Puzzler
More
10 years 6 months ago #16796 by heidemann
heidemann replied the topic: Re: Integration of a javascript back button
AWESOME

Please Log in or Create an account to join the conversation.

Moderators: vinny
Time to create page: 0.261 seconds