Reputation: 123
I have content type with name "Product" and there is field name Remote product link and field type is link. I want to set rel="nofollow" for this field. I am new to drupal and I am stuck here. Can anyone please help me on this? Thanks in advance.
Upvotes: 0
Views: 69
Reputation: 7124
You can have specific field and node templates for your field / content type.
Checkout on template naming conventions i.e. here:
https://www.drupal.org/docs/7/theming/template-theme-hook-suggestions
So you should find original (core) template, copy it to your theme, but name it by following those conventions (you are overriding core templates that way) and clear drupal cache so drupal will start using it.
You can override just a field template (i.e. field--field-name.tpl.php
) , but you can also override whole node template (i.e. node--product.tpl.php
) and from it print field by field, the way you like.
Upvotes: 2