I've opened again the the macros.vm file, and in fact the lines #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName)) and onclick="if(eltHasClass(this.parentNode, 'expanded')) createCookie('$cookieName','collapsed', ''); else eraseCookie('$cookieName'); togglePanelVisibility(this.parentNode);">$title</h5> do seem to control the collapsed status. However, I do not get that behaviour Joao On 07/03/2008, [Ricardo Rodriguez] Your EPEC Network ICT Team <[email protected]> wrote:
Hi João,
Joao Henrique Silva Santos wrote: I want to maintain the "expanded/collapsed"-status of my panels when surfing my xwiki.
I've seen the post http://lists.xwiki.org/pipermail/users/2008-March/010746.html :
I think it would be ok to follow the original thread ;-)
To maintain the status while surfing the wiki is the default behavior. Do you get a different thing? Does your browser accept cookies?
However, I can't see the code used for XWiki panels since I can't enter edit mode. I really want to see how to implement those cookies, so if I'm looking in the wrong place, where can I search it?
I read "your wiki", thus if you have installed it I don't understand why can you not enter edit mode? Even tough you have installed the default .xar, you can gain access by using Admin as username and admin as pasword. See this...
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HInstalling...
The code controlling status cookies is in macro.vm template. Look for it in the /templates folder under /xwiki. You must want to find macros panelheader and largepaneheader.
Hope this helps,
Ricardo
-- Ricardo Rodríguez Your EPEC Network ICT Team
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users