In a Views, I have two field :

  • Link field : With 1 to n links to display (excluded from display)
  • Body field : Who use the previous link field (via rewrite output and token)

I have created a custom template for display link field like I want.

Here is my problem: When I render my Views, my custom template isn't used for display my links... He use the display function defined in the link field settings.

Is there a way to force View to use my template ? Any suggestions to do this?

Edit : Some screenshot of fields and theme informations

Link field : enter image description here

Body field : enter image description here

Theme Infos : enter image description here

  • I'm trying to solve the same problem. What was your solution? It seems fields used as replacement patterns simply cannot be themed.
    – Hawkee
    Apr 2, 2016 at 11:19

2 Answers 2


To use the custom template for a particular field you should use the template suggestion from Theme:Information from advance section of your view, Select the suggestion template form the them info as the screenshot for field NID enter image description here . Create that template inside the your_theme/template folder. Don't forgot to clear the drupal cache.

  • Thank for your answer but I have already do this solution. Maybe my post is not clear on that point but I have a custom template acccording Theme:Information infos. I have clean my cache many times... But the problem stay... Use a custom template on a hidden field seems doesn't work.
    – Payou
    Jan 16, 2014 at 7:57
  • if it is hidden then why you want to theme that, i unable to understand in this point.
    – madhurjya
    Jan 16, 2014 at 8:37
  • Because I use it in an other field where I rewrite output using this field with a token.
    – Payou
    Jan 16, 2014 at 8:40
  • so you should theme that another field than only it will effect...debug the $output or available templete variables to theme your field
    – madhurjya
    Jan 16, 2014 at 9:00

If you make this field the displayed field it will take the theme adjustments. Do your rewrite and replacement patters on this field, put it at the end of the field list and exclude the others. If this field is used as a replacement pattern the theme will not be applied.

Your Answer

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

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