0

I have created a simple view to list teasers of a particular content type.

I'm then using a simple view template, modified to suit the layout needed. In the content type set-up there is not an option to display the path/URL to the full content. I can set the image if output to link to the original content, but I can't seem to find an option to just get the URL for the full content so I can link the whole teaser block to the full article.

Any clues? Know this should be easy - but can't seem to find it.

  • Normally, you can access nid with $row->nid in your template. From that, you can easily build the link to your node content with node/ . $row->nid path. – Djouuuuh Jan 30 '15 at 12:53
  • You know I was looking for a harder route - this makes perfect sense, and you're right (well $node->nid) is there in the loop. Do you want to pop this up as an answer? Thanks. – steve Jan 30 '15 at 13:19
  • Done! Glad it helped you. ;) – Djouuuuh Jan 30 '15 at 13:21
2

Normally, you can access nid with $row->nid in your template.

From that, you can easily build the link to your node content with node/ . $row->nid path.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.