Closed (won't fix)
Project:
Display Suite
Version:
7.x-1.4
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2011 at 17:19 UTC
Updated:
8 Apr 2012 at 12:30 UTC
I'm a recent display suite convert and I'm wondering how I could add a dynamic class to a field using display suite.
Seems like that the only way to do this is to override the theme_ds_field_expert function in my theme. I was wondering if there was a more elegant way to proceed with this? Here's the scenario, in case that helps:
Comments
Comment #1
swentel commentedThat's extremely hard. The easiest way is to create a custom field template either through core of display suite. see hook_ds_field_theme_functions_info in ds.api.php