Bug in tiki-user_menu.tpl
Some people noticed that dynamic sections in custom menus automatically collapse whenever a page is loaded (Tiki 1.8.3). The standard application menu however "remembers" expanded and collapsed sections.
The reason for this is apparently a bug in tiki-user_menu.tpl. The current state of each section is stored in a separate cookie. When *reading* this cookie its name is supposed do be something like 400_12 (thats's the menu id and position). When *writing* it the name is being prefixed by 'menu', like menu400_12.
To fix this, look for this string:
'menu{$cname}' (three occurences)
and replace it by
'{$cname}'
Thus the name of the cookie is not altered and remains consistent between reading and writing.
Optional enhancement:
It's probably a good idea to make the names of menu cookies indeed start with 'menu' in order to avoid possible name clashes. So look for this line:
{assign var=cname value=$menu_info.menuId|cat:'__'|cat:$chdata.position}
and replace it by
{assign var=cname value='menu'|cat:$menu_info.menuId|cat:'__'|cat:$chdata.position}
Hagix