23 Aug
2010
23 Aug
'10
11:27 p.m.
On 08/24/2010 01:17 AM, Lockie wrote:
Sergiu Dumitriu-2 wrote:
On 08/23/2010 06:46 AM, Lockie wrote:
I was going to make a thread asking this but found this one. Is there any way to default panels as collapsed?
All panels, or just some?
I'm looking at having them all closed and I'm using the colibri skin if it helps.
Then you can create a JavaScript extension (see http://platform.xwiki.org/xwiki/bin/DevGuide/SkinExtensionsTutorial ) with the following code: document.observe('xwiki:dom:loaded', function() { $$('.panel').each(function(item) { item.removeClassName('expanded'); item.addClassName('collapsed'); }); }); and set the extension to be used "Always on this wiki". -- Sergiu Dumitriu http://purl.org/net/sergiu/