TouchingVirus
07-18-2004, 10:00 PM
Well, i just thought i would tell you all how to make things be collapsed by default because i didnt see anything relating to it on the forums.
In vB3, theres the handy feature to collapse items, but once your cookies are cleared, they are expanded by default again..well here is how to default it to collapsed
in your templates, find the tbody you require.. for example..
<tbody id="collapseobj_forumhome_XXXXXXXX" style="$vbcollapse[collapseobj_forumhome_XXXXXXXX]">
Change the style variable to display:none, so the example above would now read:
<tbody id="collapseobj_forumhome_XXXXXXXX" style="display:none">
And thats it, your table is now collapsed by default. Obviously you can expand it as usual. Hope you enjoyed this little tip and apologies if its already posted!
In vB3, theres the handy feature to collapse items, but once your cookies are cleared, they are expanded by default again..well here is how to default it to collapsed
in your templates, find the tbody you require.. for example..
<tbody id="collapseobj_forumhome_XXXXXXXX" style="$vbcollapse[collapseobj_forumhome_XXXXXXXX]">
Change the style variable to display:none, so the example above would now read:
<tbody id="collapseobj_forumhome_XXXXXXXX" style="display:none">
And thats it, your table is now collapsed by default. Obviously you can expand it as usual. Hope you enjoyed this little tip and apologies if its already posted!