i need to add a set of panes into numerous node overrides panels. these panes have visibility based on a value in a term ref field on the node. it seemed like an efficient method would be to create a mini-panel with the required panes and then i could add this to the numerous panels that require it.

at first the panes in the mine-panel did not see the node fields when i tried to set their visibility; but then i added a required context for 'node' for the mini-panel and i was then able to set the visibility based on the term ref field. but the selection of the term is not being saved and as a result the panes in the mini panel are always visible when the mini-panel is added to the node override panel.

Comments

liquidcms’s picture

Title: visibility settings not saved for mini-panels » visibility settings not saved for mini-panels for term ref fields

i guess not all setting types are not saved as php coded setting is saved; so was able to use that instead:

if ($contexts['requiredcontext_entity:node_1']->data->field_topic['und'][0]['tid'] == CIVIL) return true;
return false;

this was saved correctly in the mini-panel and does work as expected when the mp is added to node override panel.

japerry’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.