I noticed this works great for everything...except Media Gallery. The Media Gallery module is dependent upon the field-items div, and the field-item divs to display the galleries with the right styling (anywhere from 1-10 columns wide, and also makes the Media Galleries compatible with responsive theming).
Is there a way to override Fences for specific fields to use the "normal" Drupal field output?
The field in question would be "media_gallery_media" as opposed to something like "field_gallery_media". I already tried copying the default field.tpl.php into my theme folder and renaming it according to the normal overrides: http://api.drupal.org/api/drupal/modules%21field%21theme%21field.tpl.php/7.
Any help would be appreciate as this module is awesome for cleaning up Drupal's structure....
Comment | File | Size | Author |
---|---|---|---|
#2 | fences-default_markup_option-1857230-2.patch | 1.16 KB | Xen |
#1 | fences-default_markup_option-1857230-1.patch | 712 bytes | Xen |
Comments
Comment #1
Xen CreditAttribution: Xen commentedCreated patch that adds a "Use Drupal standard markup" option to the selector, if the global option to override standard markup globally, isn't set.
Comment #2
Xen CreditAttribution: Xen commentedAnd it should be made the default (or else the default value doesn't match what the user selected).
Comment #3
jsacksick CreditAttribution: jsacksick commentedIt works as promised, I added the patch to Commerce Kickstart.
Comment #4
JohnAlbinThe nice thing about the addition in patch #2 is the Fences pull-down matches the actual configuration of the field now.
But the problem with the patch is that it doesn't work if the user has used the Override the default wrapper markup with Fences’ lean markup (single div wrapper). option of the Default “div” markup for unconfigured fields setting. If that option is selected, then the Fences div version is always used because the new Fences "use core fields" select value (added in patch #1) is "" (empty) and looks the same as an unconfigured field.
We need to add an explicit configuration for Drupal's default configuration. And I've chosen "div_div_div" to match how the other Fences suggestions work. lol at how ridiculous the new option looks (and is!)