Access Keys:
Skip to content (Access Key - 0)

A conditional menu item for creating or viewing personal space


This forum has now moved. These topics have been left as a read-only archive. Please create all new topics in the Community space.


I would like to create a conditional menu item as follows:

If the user has a personal space then use:

{compound-menuitem:view-my-personal-space|icon=user1_earth|caption=View/edit my _Personal Space} 

where view-my-personal-space is an alias for location=system.user/user-preferences and key= personal-space.

However, if the user doesn't have a personal space and is a member of a particular group that I have set up to allow personal spaces, e.g. via {builder-show:group=members}, then I want a link that will send the user to the create personal space page:

{compound-menuitem:custom|link=http://wiki.mysite.com/spaces/createpersonalspace.action|icon=user1_earth|caption=Create Personal Space}

I would like help to (1) use builder-hide with the condition that the user already has a personal space and (2) use an alias or non-link language to point the user to the createpersonalspace.action page.

Many thanks for any help.

Tom



Ask questions, get help and report bugs & issues on our Community Site

View old comments


Adaptavist Theme Builder Powered by Atlassian Confluence