If you create an FPP that is reusable, but don't provide an "Administrative title" (which is an optional field) then it will show nothing in the 'Add content' dialog, which makes them pretty much usuable. :-/

Here's a screenshot:

We already dealt with pretty much this exact same issue with the entity label in #2483335: Improved label in File Entity file usage report, so I propose calling entity_label() to get the admin title.

Here's what it looks like after the patch (falls back on title):

The entity label callback code will also come up with something to show even for panes without titles.

Comments

dsnopek created an issue. See original summary.

dsnopek’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new9 KB
new727 bytes

Here's the patch! And a screenshot showing that it shows the title if there is no admin_title. The entity label callback code will also come up with something to show even for panes without titles.

dsnopek’s picture

Issue tags: +panopoly

Will likely use this in Panopoly per #2562157: Can't distinguish reusable content without admin title when previews are in single mode - it ends up being an accessibility and usability issue

cboyden’s picture

Status: Needs review » Reviewed & tested by the community

Looks good. It's working as expected. If there is neither a display title or an admin title, what's displayed is:

[Name of FPP type] (id: [id])

which is fine.

  • DamienMcKenna committed 38e0f54 on 7.x-1.x authored by dsnopek
    Issue #2562717 by dsnopek, cboyden: Resuable FPPs with no admin title...
damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed
Parent issue: » #2493105: [meta] Plan for Fieldable Panels Pane 7.x-1.8 release

Committed. Thanks!

Status: Fixed » Closed (fixed)

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