By johnlutz on
I have a view set up that pulls out particular records and displays each one with it's title, picture, and description. I would also like some text to display for each one that says "For more information" that is linked to the node itself. I found a field called Global:Custom Text and addded my text, but I can't figure out how to link to the node dynamically for each record. Please help. Thanks.
Comments
You can do that with
You can do that with views.
Start by adding "Node: Nid" as a field, you will probably want to check "Exclude from display".
Now add a field of type "Global:Custom Text" (If you already have the field order the fields so "Node: Nid" is before "Global:Custom Text" and edit the global field).
In "Text" put "For more information"
Check "Output this field as a link"
For "Link path" type
node/[nid]Update the field.
Thanks
Thank you. I was trying to figure that out also. Now I see how to get more tokens available to link Custom Text to.
Thank you. It works nicely.
Thank you. It works nicely.
Views Custom Text Link to Node
I wanted to do the same thing and found the same solution you describe. But I have a small problem, my [nid] always get replace by the last [nid] of the list, and not the one of the current node. I can't figure out why.
weight cause problem with the [nid] token
I've found, the problem is the module weight changer that cause problem with the view token that always is interpreted as the last of the list. i'll report this issue.
add node:link
add Node:Link and set "text to display"="For more information"
add node:link
i would highly recommend the solution given by murfi. It works perfectly that way.
What if you want...
what if you wanted to replace de "text to display", for an image¿? No chance to achive it?...
thanks. marked.
thanks. marked.