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

nevets’s picture

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.

TheAlienShore’s picture

Thank you. I was trying to figure that out also. Now I see how to get more tokens available to link Custom Text to.

gilzero’s picture

Thank you. It works nicely.

slucas’s picture

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.

slucas’s picture

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.

murfi’s picture

add Node:Link and set "text to display"="For more information"

silkogelman’s picture

i would highly recommend the solution given by murfi. It works perfectly that way.

rstuker’s picture

what if you wanted to replace de "text to display", for an image¿? No chance to achive it?...

gilzero’s picture

thanks. marked.