This project is not covered by Drupal’s security advisory policy.

This module allows you to define Back Button in your nodes.

For example, your site can have the view "Blog" for a blog and you want to place link "Back to blog" on each "Blog Post". This module allows you to create such link. On settings page you can select which node type to use for the button, which view - to go back and template for the named anchor.

This module will try to automatically detect the view page where it needs to land the user and add anchor to the URL, so the page will be scrolled automatically to the post.

Back URLs look like:
http://www.example.com/blogs?page=5#node-100

You have an option to place the back button link to node links (by default) or put it in a random place of your node.tpl.php by inserting custom PHP code into the relevant place:

print theme('back_button_link_render', back_button_get_link([BUTTON ID], $node->nid));

This is a very first draft and please let me know if there are any bugs or if you have any suggestions.

Also, I have not tested it with high load and do not believe it will handle it currently since it is doing full views query in DB and scanning results to determine the current node position in views results. If someone has a better idea for detecting the correct page for the current node in views result - please post it in issues.

Project information

Releases