This is a problem that i ran into using different modules so I'll cross post it in different places and referencing them to keep things tidy.
The modules involved are Views, Panels, Panels Tabs, Page Title.
Basically I'm creating "content panes" with views, then using them in panels and displaying them as tabs.
I build one "content pane" using contextual filters to see different things, and set the "Argument Input" to accept input from the pane config. In this way I'm able to display the same "content pane" multiple times in the same page with different arguments and obtaining different nodes.
The problem kicks in when grouping the panes as tabs, because I can't give them different titles!
The module "Panels Tabs" hasn't any option to set the titles (and I don't think is the place where such thing should be addressed).
The module "Panels" doesn't have any option to set the title of panes.
In Views "Content Panes" can only have static titles, i.e. I can't use arguments or tokens to build them.
The Page Title module somewhat addresses this problem, and installing it I'm able to use arguments in the "Content Panes" title.
Still the options are very limited, I can only use the argument as it is, while I would like to be able to manipulate it, like trimming, getting the first few words (otherwise the tabs get stretched too much): something like what you can do with fields and other outputs in Views.
Again, I Don't know who should address the issue so I make everyone involved aware of the thing, hoping someone will solve it.
Comments
Comment #0.0
keyiyek commentedupdated reference links
Comment #1
merlinofchaos commentedIn the allowed settings in the content pane display, one of the options is to allow pane config to override the title of the pane.
Once that is checked, when you edit the pane, you can select to override the title and put whatever title you need.
If you need the title to be dynamic, then using something like %1 in the view title (not the override title, I'm afraid) should use the argument as the title.
Comment #2
keyiyek commentedHi, thanks for the quick answer.
wow, never saw that option, not even in all the views tutorial I followed...
that solves my specific problem.
As per the %1: it works with the Page title module installed, I couldn't make it work without it, Do you say it should work nonetheless?
Comment #3
merlinofchaos commentedYes, Views uses that natively in its own title field. In fact, with current versions of Views you shoudl also be able to use tokens that will use values from the first row in your title.
Comment #4
keyiyek commentedI must admit it works, when I tried last time it didn't and I installed "Page Title" to make it work. It might have been a refresh or cache problem (or my brain : ) )
Comment #5.0
(not verified) commentedurl correction