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.
Posted by pkchoo on October 22, 2011 at 2:55am

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.

Categories:

Comments

Subscribing

Posted by knalstaaf on January 13, 2012 at 7:48pm

Want to know.

Rules

Posted by MrPhilbert on February 29, 2012 at 10:51pm

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

nodeone.se

Posted by marcmarc_ on October 1, 2012 at 11:48am

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

Posted by mourad-zitouni on October 2, 2012 at 7:19pm

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

Don't understand

Posted by marcmarc_ on October 3, 2012 at 5:36pm

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

Posted by mourad-zitouni on October 3, 2012 at 9:14pm

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

Posted by marcmarc_ on October 16, 2012 at 1:44pm

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 :)

Posted by mourad-zitouni on October 16, 2012 at 8:03pm

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:

AltStyle によって変換されたページ (->オリジナル) /