Is it possible to have a title in the admin section for a mini panel, but not produce HTML for it in the theme? I can't find a way to do this.

Comments

jaarong’s picture

At least on my installation, I've also run into a problem where the block title does not override the mini panel title, it just prints both.

merlinofchaos’s picture

Category: support » bug
Priority: Normal » Critical
Status: Active » Fixed

Argh. Yes, this is wrong.

In fact, the title is currently labeled as the administrative title. The proper title should be available over on the mini panel content form itself. The problem is, we can't just change this or all the existing mini panels will break, so this is what I have to do:

1) Add an admin_title field to the mini panel.
2) Activate the ability for the display to have titles.
3) On mini panel load, detect if the existing ->title field is filled out. If it is, copy it to both the admin_title field AND the display title, and unset the -title.
4) Get everything currently using $mini->title to use either $mini->admin_title or $mini->display->get_title() depending on context.

This is now committed and appears to be backward compatible nicely.

jaarong’s picture

Thanks for your work on this Merlin

Status: Fixed » Closed (fixed)

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