Customizing Confluence Dashboard (logged in vs logged out)

Is there any easy way to add an IF statement to the Confluence dashboard such that a logged in user sees a different set of buttons vs a logged out user?

1 answer

0 votes
David Simpson Community Champion Feb 24, 2014

Browse to Confluence Admin | Look & Feel | Layouts

Edit the Global Decorator with something like this:

#if($action.authenticatedUser)
  ## logged in user logic/buttons etc
#else
  ## anon user
#end

Between the if and then the else statement, do I have to reproduce all the elements from the code between <!---General Page Decorating Begins --> and <! -- ends>? or just those buttons I'd like to modify?

David Simpson Community Champion Mar 19, 2014

Just the bits you want to change. if this is in lots of places, you can add lots of "if..else..end" statements

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

Atlassian acquires AgileCraft

         Good Day, Bad bad traffic, not sure why!!!! 1/2 hour commute took me 2 hours today 🤯 What helped me is that I kept browsing LinkedIn until...

50 views 4 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you