1

In drupal 7.39, I have created a taxonomy vocabulary called TYPE. Inside this vocabulary I have added list of terms called CLOSE, END and INITIAL.

By default, when I view the node page it will show the Taxonomy term as CLOSE, END. But I don't want this, instead of the CLOSE term it should be replaced with the description specified in the CLOSE term.

Any suggestions about how to do this?

4

You can achieve your requirement using view. In view configuration, add relationship to "Content: Taxonomy terms on node", then add "Taxonomy term: Term description (Term description)" field.

  • Thanks for your reply @Nikhil. But still i'm not getting it. – user15837 Sep 23 '15 at 7:05
  • First create view of your content type[which using TYPE vocabulary], then go to advance link at right side of view. Add relationship to "Content: Taxonomy terms on node" fields and select TYPE vocabulary in configuration. Then add "Content: Taxonomy terms on node" into fields section. – Nikhil Banait Sep 23 '15 at 7:08
  • Ya I got. But that description is not generated as term link. I got that as plain text. – user15837 Sep 23 '15 at 7:27
  • Go to "REWRITE RESULTS" under Taxonomy term: Term description field, then select 'Output this field as a link' and then provide link path. – Nikhil Banait Sep 23 '15 at 7:38
  • Sorry for the interruption. I have got the link, but when the content has CLOSE term it will redirect to Tags/CLOSE, if the content has END term it will redirect to Tags/END. How to do this? – user15837 Sep 23 '15 at 7:54

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.