0

I am creating a website in drupal.

I have two content types first is Article and second is Author

Article contains following fields: Title, Body, Author-name, Language

Author has following fields: Name, Year, Info

Now In a view I want to show the Article name, its author-name and the year of that author!

How can I do this? Thanks

1 Answer 1

1

You need Entity Reference, In your Article content type, create the author field as an entity reference field and refer it to the Author content type. After that you can create a view and add a relationship of Entity Reference and you will get the related fields. For further read, refer here

2
  • Okay thanks for the answer but I want that field to be a link of the author account! How can I do that? Jun 27, 2014 at 7:38
  • Add the referenced entity field and under Formatter select Label and then check Link label to the referenced entity. Thats it you will get the link.
    – msmani
    Jun 27, 2014 at 8:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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