Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2010 at 22:13 UTC
Updated:
11 Aug 2014 at 23:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jonskulski commentedHere is a possible solution. Though this problem extends to the other page element content_types I am told. If accepted, I will patch as necessary.
Thanks!
Comment #2
merlinofchaos commentedYou should do this against -dev, as that code has changed a little.
Comment #3
jonskulski commentedMy mistake. Rerolled!
Comment #4
merlinofchaos commentedI committed this; I almost didn't, because I got to thinking that we're hardcoding an H1 in there, and that's never the right answer. That really should be an option or something. But then I realized that was no reason to keep this needed bug fix from going on. So I'm re-activating this issue as a reminder that H1 should probably be selectable. Perhaps a select list of tags to use.
Comment #5
jonskulski commentedA select list seems limited. What about a theme function here?
Comment #6
merlinofchaos commentedPossibly, though that means messing with theme functions for something that is very very simple. Hmm.
Comment #7
jonskulski commentedI am hesitant to use a theme function here too, even though I think it's the 'Right' solution. Howver, now that panels are themable having a theme function or option here doesn't gain us any ground except in style points.
An option list, or text box, would open a flood gate. There would need to be options for other panels as well. An option list would be limited and would stop being useful for anything but very simple cases, i.e. if we needs to wrap a span around it then we would have to theme that panel anyway.
A textarea would just be duplicating the functionality of the theme templating system. It is a slightly more palatable solution though.
Comment #8
merlinofchaos commentedThe current page title is much nicer about the tag and lets you select from several choices.
Comment #10
jwilson3This is true, however the original problem reported here still stands with today's page_title pane. If you select an H1 and there is no page title, then an empty
<h1></h1>is still printed.I had opened up a separate issue #2265451: Hide empty page title pane when wrapper tag is used about this a while back... and now hit this problem again. In searching for that patch, I found this issue. Due to the margin on the empty h1, we get unwanted whitespace when there shouldn't be a page title.
Since there are patches on that issue that work on latest 7.x dev branch, can we continue there or should I reopen this and mark #2265451 as a duplicate?