Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi there,
It doesn't appear that Multifield gets fed through Display Suite when it is doing its theming. I tried using DS on the default view mode but Multifield output its own theming (I'm guessing). I also tried creating a custom view mode and using DS on that but to luck there either.
I suspect all the field injection stuff your doing skips the DS theming? Anyway, just wondering if this should work and I've missed something or whether it might be a useful feature to have if not?
Thanks - Multifield looks great and I always have a chortle at the Multipass photo!
Comment | File | Size | Author |
---|---|---|---|
#4 | multifield-integration-with-ds-2307423-4.patch | 3.25 KB | ademarco |
#2 | 01-multifield-disaplay-suite-2307423-.jpg | 81.83 KB | nithinkolekar |
Comments
Comment #1
Dave ReidI'd need to know what hook or process DS uses to do it's theming to know if we're skipping it somehow. I don't use DS myself, so I'd need someone to do a little digging to see what it is.
And thanks!
Comment #2
nithinkolekar CreditAttribution: nithinkolekar commentedI don't know whether DS should work with any kind of fields by default or not, but it certainly playing well with field collection item especially in form where we needed to show form fields side by side using DS forms.
As with the multifield it doesn't working both with forms and view modes(manage display).
Comment #3
epringi CreditAttribution: epringi commentedI've run into the same problem. Got a form with multiple multifields, it would be pretty nice to be able to use DS to organise them instead of CSS.
Comment #4
ademarco CreditAttribution: ademarco at Nuvole commentedAttached a patch that offers Display Suite integration, it introduces a multifield entity theme function (like
theme('node', ...)
) allowing DS to hook-up into its rendering.Comment #6
ademarco CreditAttribution: ademarco at Nuvole commentedFix version.
Comment #8
permanaj CreditAttribution: permanaj commentedPatch #4 is working for me.
Comment #9
paulwdru CreditAttribution: paulwdru commentedHi nithinkolekar,
How do you hide and make the Field Labels appear as placeholder in this picture ? Using CSS to tweak ? As I know Display Suite does NOT have hide label feature in form layout
I created a similar layout using Field Group Multiple module as follows but Multified does NOT save the entered value as raised in #2690429: Layout & crash with Field Group Multiple module
Comment #10
ademarco CreditAttribution: ademarco at Nuvole commentedComment #11
eit2103 CreditAttribution: eit2103 commentedSo, the patch didn't work for me. Anyone else with the same problem?