How to create a back to view button from node?

Events happening in the community are now at Drupal community events on www.drupal.org.
pkchoo's picture

Hello,

I have a pretty standard view that lists a bunch of node teasers, which when clicked, goes to the node page.

Obviously, the user can click the browser back button or the menu link for the view, but, it would be a better user experience to have a back link at the end of the node that takes the user back to the view.

Is there some standard method of doing that in Drupal. Do i just create a field for the node that links back to the view? I'm working D7.

Thank you.

Comments

Subscribing

knalstaaf's picture

Want to know.

Rules

MrPhilbert's picture

This is done with rules and views bulk operations. nodeone.se has a pretty good tutorial. Or check out the rules group.

nodeone.se

marcmarc_'s picture

Could you give a link to where this is done with rules and views?
I tried the search on nodeone.se but couldn't find anything about a back button.

thanks.

you could make a simple html

mourad-zitouni's picture

you could make a simple html form to get back to the views page

Don't understand

marcmarc_'s picture

I don't understand what you mean with simple html form.

A html form to me is to get information from the user, not to make links to previous pages. So could you please be more specific ?

I mean a form containing only

mourad-zitouni's picture

I mean a form containing only submit button with action pointing to the view page.
A better solution is to override the template of the node and add a link wich takes to the view page.

multilingual link

marcmarc_'s picture

Ok, i've found how to override the template file of that node and added a link back to the view.

But now in all languages this link will link back to the same language. Do you know how I can make a link that will allways send the user back to the view with the right language ?

Edit:
I've found a sollution.
I used this: ' print l( t("button name"), "link name"); ', and translated the text with string translation.

nice work :)

mourad-zitouni's picture

nice work :)

Newspapers on Drupal

Group organizers

Group categories

Topics - Newspaper on Drupal

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: