0

I reference a node into a view header (rendered entity). I need to do some changes in the output of this referenced entity.

Does anyone know the filename for the needed template?

0

When an entity is rendered an entity view mode is picked. Each entity view mode can have different dispaly configuration. So, you may add a new View mode to your entity and set up the appropiate display config in the entity display page.

Then, in your view, seleect this view mode when configuring the rendered entity.

If you need further output customization you can define your own template for your View mode.

To add anew view mode you can check this question: How to add additional display(view mode) for node?

To set up a template file for your custom VIewmod you can check this question: How to provide template for particular view mode?

You can also use the full view mode, but this affect all rendered entities of this type.

  • Thanks for your help. Sometimes less thinking is more. When an entity is referenced into the header of a view, the title of this entity is rendered as a link to the view (which I don't wanted). And so I thought that it's more complicated to change the output. A simple node--NODETYPE.tpl.php does it. – deelite Dec 29 '14 at 17:18

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.