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>
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.
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.
your fieldset is not collapsable ;)
Thanks, I fixed it now.
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.
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