Currently, pane titles are displayed only using the 'default' view mode settings. They should be displayed according to the specified view mode.

So if my 'default' view mode has the 'title' set to visible, and my 'full - no title' view mode has 'title' set to hidden, I do not want title to be displayed when the pane has 'full - no title' set.

Comments

rrrob’s picture

Status: Active » Needs review
StatusFileSize
new995 bytes

Patch attached.

rrrob’s picture

This new patch fixes a condition I missed the first time.

mkhamash’s picture

Issue summary: View changes

Confirm that the patch does work with display suite title field and the logic seems ok, but the code does need some cleaning-up.

damienmckenna’s picture

damienmckenna’s picture

StatusFileSize
new1.68 KB

+1 one for this, though I've added a quick !empty($entity->title) before doing the other logic.

damienmckenna’s picture

Status: Needs review » Fixed

Committed.

  • DamienMcKenna committed 5abfc67 on 7.x-1.x
    Issue #2092477 by rrrob, DamienMcKenna: Make the pane title use the...

Status: Fixed » Closed (fixed)

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