How would you suggest implementing tabs?
[tabgroup]
[tab title="hello"]My content [/tab]
[tab title="test"]Mycontent [/tab]
[/tabgroup]
The problem I am facing with the way your short codes have been implemented is that there is no "do_shortcode()" function.
the "_shortcode_process()" function checks the shortcode_list_all() and if a shortcode exists then it will parse it.
the problem is that the tab group needs the title info from the children tab's and only then can they be parsed, so in effect its a nested short code process, what should happen is that inside the "shortcode_tabgroup() function i should be able to call "do_shortcode()" and pass it the content of tabgroup so that they can be parsed, see: http://michaelwender.com/blog/2010/11/01/creating-wordpress-shortcodes-f... as an example.
Do you have a suggestion on how to achieve this using the current implementation of shortcodes?
Comments
Comment #1
denes.szabo commentedI have no clue why do you need the title for a tabgroup. Can you give me an example?
There is no do_shortcode() because this is a Drupal :) Btw, the shortcode macros processed from inside to out, so as I remember, the outer macro gets the inner content.
Maybe you need just add a title (name) to the tabgroup too (according to this code: http://jqueryui.com/demos/tabs/).
If you can not able to manage it, tell it to me, I am open for new challenges, why not for a new tab macro? :)
Comment #2
gamelodge commentedAaah Ok I see, so it does process from the inside out, in that case it should work.
Ok Yes I have managed to get it working now, thanks for the clarification.
Comment #3
denes.szabo commentedClosing.
Comment #4
jeysonlanteas commentedHellow World !
Not close please i have a same problem help me !