Pedro Posada | Collapsible fieldsets

Collapsible fieldsets

Posted on May 26, 2008 - 4:16pm
<< 28 of 46 >>

Code snippet to build collapsible fieldset like this one:

<?php
drupal_add_js
('misc/collapse.js');
drupal_add_js('misc/drupal.js');
?>


<fieldset class="collapsible collapsed">
<legend>
Title of fieldset goes here.
</legend>
<p>
Content goes here.
</p>
</fieldset>

Submitted by sudalairaj (not verified) on June 4, 2008 - 10:56am.

I am new drupal...

where we apply the php code for get collapisble fieldset
in content type body or otherwise...send your answer to my mail id.

Submitted by pedro on June 4, 2008 - 10:58am.

You would insert this code in any node using the full html input format or the php input format.

You can just create a page and insert the code there and select php input and hit submit.

Submitted by Anonymous (not verified) on November 16, 2008 - 4:57pm.

your fieldset is not collapsable ;)

Submitted by pedro on February 19, 2009 - 11:01am.

Thanks, I fixed it now.

Submitted by Anonymous (not verified) on February 19, 2009 - 10:20am.

I am new drupal ...

where we apply the php code for get collapisble fieldset
in content type body or otherwise...send your answer to my mail id.

Submitted by pedro on February 19, 2009 - 10:59am.

You apply the code above in a page or in the body of any content type you are posting. You can apply the code in any post, as long as you are not using filtered HTML input format for that posting. Hope this helps.

Post new comment

The content of this field is kept private and will not be shown publicly.
Please solve the math question. This way we will know you are not a robot.