When adding a Panelizer field to a content type to allow the user to select which layout to use, it shows selection drop-downs for every view mode regardless of which are enabled in the "Custom Display Settings". It should only show the layout selection for the view modes that are enabled. Or, add the ability to select which view modes will be shown in the configuration of the Panelizer field itself.

CommentFileSizeAuthor
#2 Panelizerfield.png23.71 KBmpotter

Comments

mpotter created an issue. See original summary.

mpotter’s picture

StatusFileSize
new23.71 KB

Hmm, actually it seems even worse. As shown in the screenshot, it doesn't even show the Teaser view mode, regardless of whether it is enabled and regardless of whether the Teaser is set to use panelizer.

Not only should it only show view modes that are enabled, it should only show view modes that are panelized. Doesn't make sense for the content editor to choose a different panelizer layout for a view mode that doesn't even use panelizer.

dsnopek’s picture

Yeah, to preserve D7 behavior it should be only the Panelized view modes.

However, the code in Panelizer HEAD for these select fields is incomplete and doesn't actually do anything (and in fact, it gives no options because there's only the one default). A short-term solution could be just removing that code since it's broken anyway?

A longer-term solution would be finishing #2664682: Implement admin UI for editing Panelizer defaults and then fixing this issue, so maybe we should just postpone this?

damienmckenna’s picture

Version: 7.x-3.x-dev » 8.x-3.x-dev

This is for D8, right?

andypost’s picture

Status: Active » Closed (duplicate)