Please see: http://drupal.org/project/tableofcontents

I am using Panels and would like to style a panels region so I am able to hide/show just like the TOC module above.

I have looked on Drupal downloads for a module, but none work the way I want.

Any suggestions? Thanks for your time!


I solved this by using the following module & some code:


Panels region > Change style > Wrapper: raw.

Content prefix:

<script type="text/javascript" src="/misc/form.js"></script> 
<script type="text/javascript" src="/misc/collapse.js"></script> 
    <fieldset class="collapsible form-wrapper">
        <span class="fieldset-legend">Attachments</span>
        <div class="fieldset-wrapper">

Content suffix:


Save and update. Voila!

References: Supplied if needed.

| improve this answer | |

Now there is a module for that: https://www.drupal.org/project/panels_style_collapsible

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.