Closed (fixed)
Project:
Panels
Version:
6.x-3.2
Component:
Mini panels
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2010 at 14:51 UTC
Updated:
6 Sep 2010 at 15:50 UTC
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
Comment #1
jaarong commentedAt 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.
Comment #2
merlinofchaos commentedArgh. 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.
Comment #3
jaarong commentedThanks for your work on this Merlin