I would like to customise a view with a new column. It would take the node id and pass that as argument in a url to another view.
Is that possible? Can I add a new column to a view? Should I use code like http://drupal.org/node/154084 or can it be done easier?

Comments

mooffie’s picture

Months ago I wrote a tiny Custom Link module which lets you construct a URL using tokens. It's for D5. I'd port it for D6, it's quite easy, but I think doing so is a violation of Drupal's "Join Forces" principle, because, gazillions of Drupal modules exisiting nowadays, surely this functionality exists in some other module already, or should be in other module.

WorldFallz’s picture

You could probably do this by theming the view. See views advanced help and the "Theme: information" link in the basic settings box of your view for some documentation. You might also want to look at the http://drupal.org/project/views_customfield module.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

mooffie’s picture

You might also want to look at the http://drupal.org/project/views_customfield module.

(Hmm.... so it was indeed written already ;-)

aquila’s picture

This seems the perfect solution, thanks for the pointer!