I liked the collapsable menu, in my case I re-used them to do something more useful (I
have several spaces which have their own menu - I just rewrote the panel to list that data
instead, as well as the main category list).
Here's an example of the chunk you need to look at for the expand-collapse feature (by
no means complete, just a reference for you to look at):
<div id="xwikinavcontainer">
<div id="xwikinav">
<div id="xwikinavHome">
<div id="xwikinavHomeHeader"
class="accordionTabTitleBar"><h6>Home</h6></div>
<div id="xwikinavHomeContent"
class="accordionTabContentBox">
[Home News>Main.WebHome]
#set($catdoc = $xwiki.getDocument("Blog.Categories"))
#foreach($catobj in $catdoc.getObjects("Blog.Categories"))
#set($catname = $catdoc.display("name","view",$catobj))
#if($catname!="")
* [${catname}>Blog.Category?category=${catname}]
#end
#end
</div>
</div>
</div>
</div>
<script type="text/javascript">new Rico.Accordion( 'xwikinav',
{panelHeight:'100',onLoadShowTab:'1'} );</script>
Notes of interest:
* onLoadShowTab:'<numberoftabhere>' does not always do what you expect.
However, it is useful to make it expand the correct tab when in that space (you could use
$doc.web to determine this)
* The div id for the actual collapsable section is important - you should make sure this
is uniquely labelled (eg xwikinavHome). If you follow the script in the initial panel
code, you would see the default uses the space name.
* [] does not guarantee a new line after it like it does in 0.9.840 - you must make sure
to either break afterwards, or use a list identifier.
-----Original Message-----
From: Vincent Massol [mailto:vincent@massol.net]
Sent: 12 February 2007 08:04
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] Side-Panel Grouping
On Feb 12, 2007, at 8:18 AM, Dandre wrote:
Good day everyone.
After getting our production DB to work with the new XWiki with
Postgres, I am just wondering how do you group all the spaces located
in the right-side panel like in the XWiki website, where you can click
on a group and the thing collapses or expands. In our case, there is
so many spaces that you scroll down and down and it gets pretty
irritating after a bit.
Any ideas on how to do it? I hope I am clear enough.
You create your own panel and you put inside whatever you want to see.
-Vincent
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface
révolutionnaire.
http://fr.mail.yahoo.com