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.
I have a node with a custom view mode that I have created with display suite. On admin/config/content/panelizer I can choose to panelize all of the out-of-the box view modes ( Full page override, Default, Teaser), but not my custom view mode.
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedYou need to set your view mode to use 'custom settings' => TRUE in the settings in hook_entity_info_alter(). Then Panelizer will see it and be able to panelize it. This was done to avoid panelizing things like RSS feeds and other 'hidden' view modes.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedI guess if you created it with display suite, you might need to file an issue with display suite to ensure that that setting is right. Either that or display suite is using some other setting to make a view mode visible.
Comment #3
jlyon CreditAttribution: jlyon commentedThanks. I created an issue in display suite: #1784340: Set custom settings = TRUE for created view modes.
Comment #5
Dadaisme CreditAttribution: Dadaisme commentedHi!
Enabeling a custum display from display suite in manage display for a content type (a way of setting in to true?) does not make it "panelizerable". Why?
Suggestions?
Thx.
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedYou need to visit admin/structure/types and choose 'manage display' for whichever node type(s) are relevant and select 'custom settings' for that view mode. That will allow the view mode to be panelizable.
Comment #7
merlinofchaos CreditAttribution: merlinofchaos commentedQuestions like this should probably be new tickets.
Note: I haven't tested this with display suite-provided view modes, I've only used the entity_view_modes module and that has worked for me.
Comment #8
Dadaisme CreditAttribution: Dadaisme commentedHi!
That's what I did and the view mode did not appear in panelizer.
Thx