As it would be nice to be able to switch the display on each paragraph item, I thought it would be useful to be able to panelize paragraph items. This gives you the opportunity to panelize e.g. the "Default" view mode of a paragraph item and provide several different output layouts (via the panelizer module) users may choose from during content creation.
Because the panelizer module is quite modular and you may provide a panelizer entity plugin to handle this, I wrote an implementation for that and I will provide a patch for this in my next comment.
Hope this may be added to the dev release soon, because this really makes "view mode" switching (in this case panelizer variants) really easy and each panelizer variant may be exported via features module on its own without messing with the field bundle settings variable of a paragraph item if this is exported via features as well.
Cheers
hctom
Comment | File | Size | Author |
---|---|---|---|
#1 | panelizer_integration-2420705-1.patch | 8.97 KB | hctom |
Comments
Comment #1
hctomAttached is the patch that does the following:
PanelizerEntityParagraphsItem
panelizer entity pluginhook_page_alter()
panelizer
operationPanelizer also allows custom displays for individual entities. This is currently NOT implemented in the patch, because the paragraph item entities do not have an own page and so it would be hard to implement the corresponding administrative interface. Everything else, the panelizer module provides, should work (providing default panelizer displays, switching between panelizer displays on each individual paragraph item etc.).
Comment #2
jeroen.b CreditAttribution: jeroen.b commentedTested and committed to dev. Very cool, thanks!
Comment #5
jeroen.b CreditAttribution: jeroen.b at .VDMi/ commented@hctom, please check #2510654: Panelizer: notice when panelizer on node enabled, disabled on paragraphs