2

I want to get rid of the default classes and add my own to the fields. I was always using field.tpl.php but i've read some tutorials where people are doing this with Display Suite. So should i do this via field.tpl.php or Display suite?

closed as primarily opinion-based by kiamlaluno Sep 6 '15 at 16:42

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I'ld stay with field.tpl.php in that case if it's only on markup level, since this is code you can work with outside the database. That may be much easier maintainable in the long run. – leymannx Sep 6 '15 at 15:15
3

It's matter of opinion, really. I'm using DS and it works fine, but it might have disadvantages later on, because I will have to export my settings to code with Features.

Also, DS isn't your only option - you can also try:

and others. Which depends on your other needs - for example, are you planning to use DS multiple display modes handling?

  • +1! Also it might be a big overload if it's only for cleaning markup. – leymannx Sep 6 '15 at 15:09
  • No, i just need to wrap fields in DIVs my own way, add wrapper sometimes so i think the .tpl.php method is the best one for me. Thanks for your help! – user504944 Sep 6 '15 at 16:04

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