Scenario:

  • Enable Panelizer for an entity bundle, e.g. a content type; note that on the form it initially lists all view modes, so for the content type it'll list RSS, search index, search result, etc.
  • Save the settings.
  • Load the entity settings form again, note that the list of view modes only contains a small subset of the items previously available.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
738 bytes

It turns out that the logic was built this way on purpose, which IMHO doesn't make sense as it was stopping the view mode selection from being modified after it was initially selected.

DamienMcKenna’s picture

FileSize
1.32 KB

There's a similar problem with the main settings page (admin/config/content/panelizer) that shows up when using #1820442: Panelizer for Comments.

DamienMcKenna’s picture

Issue tags: +Check with merlinofchaos

I'd like to discuss this with merlinofchaos as the existing code that's creating this bug seems like it was put there on purpose.

DamienMcKenna’s picture

DamienMcKenna’s picture

Title: Available view modes list changes after Panelizer settings saved » Update UI / documentation to indicate view mode displays must be enabled before they can be Panelized
Status: Needs review » Needs work

After digging into it more I realized that this is actually on purpose - only the view modes that have their displays overridden can be controlled through Panelizer.

What we need, however, is some UI indication that this is the case, with links as appropriate.

DamienMcKenna’s picture

Status: Needs work » Needs review
FileSize
3.14 KB

This adds a description on the Panelizer vertical tab on add_bundle_setting_form, implements hook_help to add a help message on the main settings page, and adds links to the Manage Display page of the entities that support it.

DamienMcKenna’s picture

jamestombs’s picture

FileSize
3.58 KB

Didn't even realise that was possible.

In fact after reading the documentation from your patch, my patch breaks the module (i.e. you can't panelize search result even if you have checked the box on Manage display).

Attached is a patch including UI/documentation changes as well as a fix to my patch.

My changes hide all the options which have no effect until they are enabled under Manage display after which they'll appear.

DamienMcKenna’s picture

Component: Code » User interface
DamienMcKenna’s picture

FileSize
14.81 KB

A bit of an improvement, I think. This streamlines the UI, adds a separator in between each view mode's settings to make it more clear what settings are for which view mode.

DamienMcKenna’s picture

FileSize
15.26 KB

Fixes for the logic that decides whether or not to show a view mode.

DamienMcKenna’s picture

FileSize
17.35 KB

Further improvements to the view mode selection logic. I think this is correct.

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed.

  • DamienMcKenna committed 5555def on 7.x-3.x
    Issue #2147795 by DamienMcKenna, jamestamr: UI improvements to make it...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.