Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i disable Top Nav/Web-Item based on certain Condition?

Vish Shah January 15, 2012

Hi,

i see there is a state option in Top Nav/Web-Item but how can i enable or disable based on a Condition ? Any help would be appreciated...

2 answers

1 vote
NielsJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 15, 2012

You can disable custom Web-Items with a Condition (see the documentation https://developer.atlassian.com/display/CONFDEV/Web+UI+Modules). If you want to apply a Condition to an existing Web-Item you can disable this Web-Item permanently via the Menu Manager Plugin (https://plugins.atlassian.com/plugin/details/13460) and re-create that same Web-Item via a Plugin (copy original Web-Item definition and add your Condition). To find the original definition you may search the Confluence source code for the string <web-item in all *.xml files.

Vish Shah January 15, 2012

Hi Niels,

Thanks for responding. In terms of disabling, is there a way to just gray out the Web-Item on a condition. So i would still show the Web-Item but gray that out on the Top Nav ?

0 votes
MattS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 17, 2012

Confluence or JIRA?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events