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. Thanks Regards, Dandre
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
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:[email protected]] Sent: 12 February 2007 08:04 To: [email protected] 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
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:[email protected]] Sent: 12 February 2007 08:04 To: [email protected] 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- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?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
#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:[email protected]] Sent: 12 February 2007 10:51 To: [email protected] 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:[email protected]] Sent: 12 February 2007 08:04 To: [email protected] 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- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?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
participants (3)
-
Dandre -
Esbach, Brandon -
Vincent Massol