Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I can only link it to it's node when its a node:title field when making a certain view. how can I link it to the node:body? Is there are reference id?

share|improve this question
 
You can't link the body as it usually contains block-level HTML tags (<p>, <div>, etc) which can't be wrapped in an <a> tag –  Clive Aug 3 '12 at 12:50
 
I shudder to think what worm hole would be opened if the body contained <a> tags as well :) –  Jimajamma Aug 3 '12 at 15:13

2 Answers

In all seriousness, you could do this by first including the node:nid in your view and then rewriting node:body as a link to node/[nid] in the configuration. What might happen with all the content of that body inside of that though is undetermined. I would hope views would check_plain it or remove tags etc so that just text is linked but I've never done it to see.

share|improve this answer
 
It works ! Yes! :D –  meekahu Aug 5 '12 at 15:14

There is a module to achieve: https://drupal.org/project/linked_field

Then you can add any link to any field in manage display page admin/structure/types/manage/[node_type]/display

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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