Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi I have tried the latest stable version of the 3.x views modul but the error is the same.
The problem is the following:
I have to add extra css class to wievs field manualy.
For example I want to add a class="info" to a view-node field.
I tried to set it up in the UI -> in the styles settings of the given field.
But this extra style does not appear in the source.
I have spent many-many hour of findig a preprocess solution for this not too complicated problem but I can't.
I have seen to override views-view-field----view-node.tpl.php but I'm not an advanced php programmer or a Drupal expert.
Comment | File | Size | Author |
---|---|---|---|
Views-field-setup.jpg | 94.58 KB | Prancz_Adam |
Comments
Comment #1
Prancz_Adam CreditAttribution: Prancz_Adam commentedI found a solution. The problem was that I want to get clear code and I switched of add normal views classes. So now it is working but the views add extra unnecessary extra classes. It is not a big problem but my code can be nicer and cleaner without these,
Comment #2
renatogHello Portfoliofotos. Thank you so much for providing us a solution to it. #1 really makes sense. Thanks for share it.