#panelheader gives the outer panel, when I've used it again within the panel it seems
to format things a bit odd (pushes other things outwards). Using the collapsable
menu's within the #panelheader macro gives more control over how your menu's are
displayed.. I wouldn't say it's perfect, but useful for gathering all navigation
for the wiki in one place.
It's a visual space thing for me ;).
-----Original Message-----
From: Vincent Massol [mailto:vincent@massol.net]
Sent: 12 February 2007 10:51
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] Side-Panel Grouping
On Feb 12, 2007, at 11:37 AM, Esbach, Brandon wrote:
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">
Instead of this you could also simply use the macros: #panelheader ('Panel Title')
and #panelfooter()
[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.
-Vincent
-----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
--
You receive this message as a subscriber of the xwiki-
users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/
wws
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface
révolutionnaire.
http://fr.mail.yahoo.com