Hello
On Mon, Feb 14, 2011 at 3:22 AM, Lockie <lockie(a)gmail.com> wrote:
Hi Gerritjan
To display panels as collapsed, attach a Javascript sheet to a page
(Edit>Objects>Javascript Extension). Put the following code in:
document.observe('xwiki:dom:loaded', function() {
$$('.panel').each(function(item) {
item.removeClassName('expanded');
item.addClassName('collapsed');
});
});
This will collapse all the panels.
Another temporary solution (until the issue will be fixed by someone), is to
not use a macro, but to write directly the HTML structure of the header,
inside the panel content:
<div class="panel collapsed">
<h1 class="xwikipaneltitle"
onclick="XWiki.togglePanelVisibility(this.parentNode, '');">_panel
title_</h1>
<div class="xwikipanelcontents">
_here it comes the panel content_
#panelfooter()
This way you set the status as being collapsed by default, for the current
panel.
Note that the cookies will not work anymore for such a panel and it will
always be collapsed on loading the page.
Raluca.
Mark it as 'Always on this Wiki'.
Hope this helps,
Lockie
-----
----
Lockie
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Panels-tp6018944p6022132.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users