Skip to main content
10 events
when toggle format what by license comment
Apr 22, 2016 at 16:38 comment added user56reinstatemonica8 Note that the .tpl.php file is by default ignored if you rewrite this field into another field using replacement patterns. p.s. I've editted this answer so that it's clearer that there are two approaches, and to put the good practice approach first.
Apr 22, 2016 at 16:36 history edited user56reinstatemonica8 CC BY-SA 3.0
Made it clearer that there are two answers in one, and moved the higher quality one (server side, not client side jQ) to the top
Apr 19, 2016 at 6:44 comment added Justme I'm trying to implement this solution. Is it necessary to implement the jquery and template file or is only creating the template file enough? I'm asking this as I did the template file but not getting the good result...
Feb 13, 2013 at 16:55 comment added Petro Popelyshko updated my answer
Feb 13, 2013 at 16:53 history edited Petro Popelyshko CC BY-SA 3.0
added 902 characters in body
Feb 13, 2013 at 16:33 comment added Johan Dahl Yeah I heard you can create templates for views. But I don't understand how that will give me a backend field to input the class name. However, I'm new to Drupal and views in particular so I have no clue really.
Feb 13, 2013 at 16:29 comment added Petro Popelyshko yea, i can agree with you, probabaly you will need to create template for that field and manage classes there, need some research about this
Feb 13, 2013 at 16:23 comment added Johan Dahl Yeah I know I can do it with jQuery. It's just that if feels wrong doing it that way. I don't mind it for small fixes, but to use jQuery to add classes for lot's of content just feels wrong.
Feb 13, 2013 at 16:23 history edited Petro Popelyshko CC BY-SA 3.0
added 2 characters in body
Feb 13, 2013 at 16:18 history answered Petro Popelyshko CC BY-SA 3.0