[All Adaptavist Apps]
I know in 3.2 we can pull out the 2.8 user menu, but I'd like to mimic that functionality currently. This is what I currently have:
{menubar:id=usr} {menu}{builder-show:user=@anonymous}{compound-menuitem:login|icon=user1_into|caption=Log in}{builder-show} {builder-show:group=@confluence-users}{compound-menuitem:profile|icon=id_card|caption=%user%}{builder-show} {compound-menuitem:logout|icon=door2|caption=Log out} {compound-menuitem:userspace|icon=document_heart|caption=Personal Space} {compound-menuitem:history|icon=history2|caption=History} {menu} {menubar}
Shows up as no title. ^^
5 Comments
Unknown User (gfraser)
You don't need the @ before a group name (confluence-users). The @anonymous is a special pseudo group (as there is no group in Confluence that contains anonymous users because, erm..., they are anonymous)
Unknown User (erutanlive)
Yeah, that jives with what I read in the documentation - just been scurrying around a lot recently and didn't notice i kept the @ from copy/pasting in.
It still doesn't make the item in question (whether it be a compound menu item or a simple li) appear in the topemnu of a menubar. Builder-show and builder-hide don't seem to work for first level menu items (e.g. log in vs profile link in confluence 2.8 ui).
Unknown User (erutanlive)
This is what I'm using now, a log in link shows up to the left of the personal menu then disappears when logged in. It'd be nice to swap the login with logout once a user is logged in, or just do it confuence 2.8 style with one menu.
debating whether to open an issue on it or not.
Unknown User (erutanlive)
bumpity bump.
Unknown User (gfraser)
Something like this?
I'm pretty sure there's a user=@anonymous param on the builder-show/hide macros, but Alain's not updated the docu. When he gets back from BOOM I'll get more info.