Project:Quick Tabs
Version:6.x-3.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Title is self explanatory. Is that possible? For example the Navigation Block shows the Users name.

Thank you!

Comments

#1

Version:6.x-1.x-dev» 6.x-2.x-dev
Category:support request» feature request

I think we can make a new feature to use tab content title (node title, block title, view title) as tabpage title. does it sound useful?

#2

Title:Dynamic labels for QT blocks and their tabs?» Dynamic title for tabs
Version:6.x-2.x-dev» 6.x-3.x-dev

Moving new features to 3.x version

#3

I just downloaded the new version. I will play with it and see the new features (the ajax feature works really nice!)

#4

Very useful feature, especially for translations of the content.

#5

@#3 is this already implemented?

#6

dynamic title for tabs is not implemented yet

#7

QuickTab is great, and it will be perfect if dynamic title feature is added!

#8

+1^99 for this feature.

Otherwise the title is static and often not relevant to the content within the tab. :-(

Thinking about it some more, I think it would be possible to do a theme_preprocess_block() function to edit the output HTML and modify the text of a tab.

You could even do it with jQuery post load.

Either way, it's a hack.

#9

Wouldn't be better if we can use tokens on the title of each tab?

So if you tab has a node in it, you set its title to "[node:title]" and voilá tab title is now the node title?

I thinks that this makes the module much more flexible than if we have only a "use inner content title" on/off option.

#10

Subscribing

#11

is this possible now?

#12

I think, the suggestion of comment #9 is the Drupal way. It would open all the needed possibilities of dynamic content and only use the tokens the user really need - of the installed modules that provides tokens.

#13

Using tokens would be a great idea, I think, and very flexible, and it would be implemented in a manner that current token users already understand.

#14

subscribe

#15

+1 for D7 as well.

#16

+1

any programmatical workaround available for now?

#17

If you are happy to build the quicktabs programmatically then you can definitely achieve this. You can either use hook_quicktabs_alter to alter an existing quicktabs instance in any way you want (in this case changing the titles to something programmatically driven); or you can build the quicktabs from scratch using quicktabs_build_quicktabs() - see the README file for details.

To add this to the UI, someone would need to write a renderer plugin that extends the Quicktabs renderer plugin and adds the token handling.

#18

@katbailey
thanks, I used the hook_quicktabs_alter solution and it's working fine :)
Had a hard time finding info about it ;)

#19

@rv0, well you know what to do then, don't you? ;-) Provide documentation somewhere that others can find - a patch for the readme file would be great. I have 4 branches of this module to maintain, I really appreciate patches ;-)

Oh and the stuff I said above re renderer plugins of course only applies to the 7.x-3.x branch.

#20

yes @rv0 please tell us what you did, thanks.

#21

BeaPower - there's not really much to it, write a function yourmodule_quicktabs_alter($arg)
dpm() the $arg to see what you can do with it, and act accordingly.
if i knew more about this hook i could write some docs about it, but now i just tried with trial and error until it worked.

#22

Where do you write this? I'm still new to drupal.

#23

BeaPower - Look up how to write your own module: http://drupal.org/developing/modules
Install devel so you can use the dpm() function to display contents of objects/arrays/...

#24

I am using Quick Tabs to display search results. It would be cool to dynamically insert the number of results in the title, i.e., Games (3) | Reviews (5) | Articles (20), etc...

#25

SAme here, this is actually what I wanted to try and do. How do you do this?

#26

any updates?

nobody click here