How to add a collapsible fieldset in your theme/template

Creating a class collapsible inside a Fieldset in your template file or in your theme functio

is not enough like "fieldset class="collapsible skills_group">TESTfieldset"

you need to include

drupal_add_js('misc/collapse.js');

in your hook load or in your theme function.

1 comments:

Siggi said...

Hello,
sorry if this question is a little bit silly, but these php-things are not my friends.
I create a fieldset in my node-something.tpl.php like this:

TEST-Fieldset

Now, where and how exactly do i have to include this "drupal_add_js('misc/collapse.js'" ?
I am searching through the internet since 2 hours. And cant find anything what could help me, so i would be realy thankful for any help.
Greetings from germany,
siggi

Post a Comment