This is an odd issue. Following the exact same steps via the UI will sometimes produce different preprocessing markup for FPPs. Most of the time, adding a FPP to a panel produces:
<div class="contextual-links-region panel-pane pane-fieldable-panels-pane pane-bundle-fieldable-panels-pane">
<!-- panels markup -->
</div>
However, occasionally, the same steps produce:
<div class="block block--fieldable-panels-pane contextual-links-region">
<!-- block markup -->
</div>
In both cases, the inner divs that render the actual FPP fields are identical. However, the outer divs are different-- one is rendered with the surrounding preprocessing and tpl markup consistent with a panel, whereas other times it is rendered with the preprocessing and tpl markup consistent with a block!
This markup seems to be inherently associated with the FPP such that no amount of cache clearing fixes the issue. The FPP must be re-created to fix the problem.
Any ideas about what might cause this?
Comments
Comment #1
grasmash CreditAttribution: grasmash commentedActually, re-creating the FPP is not even necessary. Assuming that it is reusable, simply removing and re-adding the exact same entity fixes the issue.
There must be some change in the db that occurs when the entity is re-added, and somehow that is triggering the incorrect rendering. Any ideas?
Comment #2
grasmash CreditAttribution: grasmash commentedAfter some more investigation, it seems the the panel pane style is somehow being set to 'System Block' rather than 'No Style' by default. Still not sure why.
Comment #3
DamienMcKennaDoes this problem persist with the current codebase? A change in 1.6 means the panes are rendered in a more normal way, see https://www.drupal.org/node/2407649 for details.