Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Hide categories in Confluence page

Hi All,

I would like to hide categories in Confluence page for all the people that have access on that, except for the confluence admin.

Can you help me,please?

2 answers

1 accepted

0 votes
Answer accepted

For everyone that will find the same problem, dont worry. Im sharing a secret with you :)

#if ($userAccessor.hasMembership('confluence-administrators', $helper.action.remoteUser.name))

#else

<script type="text/javascript">

AJS.toInit(function(){

AJS.$('#space-labels-list').hide();

AJS.$('.aui-nav-heading').hide();

});

</script>

#end

0 votes

Hello Francesco,

Welcome to Atlassian Community. It's nice to meet you.

Are you referring to Space Categories in the Space Directory or the labels on the pages? 

It depends on your Confluence version, but something like this would require you to modify the Confluence source code directly in order to hide specific sections from your users. If you can let me know your Confluence version and exactly what you want to hide, I can try to find a solution for you.

Regards,

Shannon

Hi Shannon,

Yes it was exactly what I was looking for.

Thanks but I found a way to do it. 

You're welcome, Francesco!

Feel free to share the way you found to do it; it might help other users who want to do the same.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

323 views 23 8
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you