Hi all! I'm still struggling to understand how expanded/collapsed state of panels do work. I'm currently using a 2.4.30451 XE/XEM installation. Looking for macros controlling this state in macros.vm, I see: *** #macro(panelheader $title) #set($cookieName = "${context.user.replaceAll(':','')}_${panel}") #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName)) #if(!$expanded) #set($expanded = 'expanded') #end ## Note: We pass the Panel name as an HTML class attribute so that it's possible to style ## the Panels selectively using CSS. #set ($specialClassAttribute = "") #if ($paneldoc && $paneldoc != "") #set ($specialClassAttribute = $util.convertToAlphaNumeric($paneldoc.name)) #end <div class="panel $expanded $specialClassAttribute"> <h1 class="xwikipaneltitle" onclick="togglePanelVisibility(this.parentNode, '${cookieName}');">$title</h1> <div class="xwikipanelcontents"> #end *** This macro creates an expanded panel. By clicking the panel title, the system creates a cookie that stores her current state. But if I modify this macro and says... #if(!$expanded) #set($expanded = 'collapsed') #end No macro is created and panels are always collapsed when loaded and after relaoding. Please, could you me understand why? Thank you so much!!! Ricardo -- Ricardo RodrÃguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems