Closed (fixed)
Project:
Fieldset helper
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2009 at 04:05 UTC
Updated:
23 Dec 2009 at 00:14 UTC
I just found this module and it looks like it is what i need. However, i cant figure out how to get it to work on a manually created (static html) fieldset in a block. I've searched how to override theme_fieldset, but I can't find any good tutorials or sample code to affect output of only one fieldset. It's a bit over my head.
I'm manually creating the fieldset in a block:
<script type="text/javascript" src="/misc/collapse.js"></script>
<fieldset id="editor-tools" class="collapsible collapsed">
<legend>Editor Tools</legend>
<ul>
<li><?php print flag_create_link('edpicks_artwork', $node->nid); ?></li>
<li><a href="/node/<?php print $node->nid; ?>/edit">Edit this Page</a></li>
</ul>
</fieldset>
Any suggestions?
Comments
Comment #1
jrockowitz commentedI think you just need include the fieldset helper script in your above snippet.
Note, if you do include the fieldset_helper.js script it will save the state of every fieldset on the page. This module currently does not support selectively saving a collapsible fieldset's state.
~ jake
Comment #2
clockwood commentedThanks, that worked like a charm!
Comment #3
jrockowitz commented