Needs work
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 May 2011 at 12:46 UTC
Updated:
27 Mar 2012 at 20:58 UTC
Jump to comment: Most recent file
Comments
Comment #1
emattias commentedHere are the patches
I didn't get 100% why the submit handler wasn't always added to the ctools_content_configure_form_defaults (in content.inc) form but I set it to always add it and it seams to work. If you know, please let me know..
I see this as a (first?) step in making panels/ctools more semantic, like views 3 is!
Comment #2
merlinofchaos commentedI think this is probably the wrong place to do this. This would need to be in the 'style' settings, because the style actually controls the display of the title. Note that there is at least one style that doesn't display a title at all.
Plus, that way, it is a patch only for Panels, not CTools.
Comment #3
emattias commentedYes, but then this feature is only available for the styles that implement this solution. I think this is a feature that many would like to have no matter what style is used.
Comment #4
merlinofchaos commentedBut what about styles that don't use theme('panel_pane')? Styles use their own themes.
Comment #5
emattias commentedFor example right now I'm building a site using the precision theme which provides a grid style where you can give every pane a certain grid column width. If this solution was included in ctools/panels I would be able to select the semanticly correct element for the title and still be able to style the panes according to the grid without needing to implement this solution in the theme.
I think this is a feature that should be included in the modules not be theme overrides, just like it is in views.
Comment #6
merlinofchaos commentedYou didn't answer my question in #4. In fact, you completely ignored it. For styles that don't use theme('panel_pane') this will be lame. The setting will be flat out ignored and there's no dealing with it.
And for the theoretically things that are using content_types and NOT using Panels at all (in theory they can exist) it's even weirder.
Comment #7
emattias commentedSorry, my answer to your question in #4 is that if this functionality is in panels "core" the styles will implement this too.
Or maybe you could allow the styles to alter the form if they feel that the style shouldn't have a selectable title element.
Regarding the content_types and no panels I'm not sure what you are referring to. Could you give an example?
Comment #8
merlinofchaos commentedIn theory, dashboard module is using CTools' content types.
I'm just not comfortable having HTML tags here, when it should more correctly be in the style section.
Comment #9
emattias commentedI've made a patch to the Precision theme that adds this functionality: #1273390: Make titles HTML element selectable (patch inluded)
I still think this should be available for all panes though.. :P
Comment #10
c.hill commentedbut html heading tags aren't just for style, they are used to give the page structure. I think i kinda want to control which tag gets used without worrying about what it is going to look like.