Forums

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

Hide categories in Confluence page

Francesco Casaluce September 4, 2019

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
Francesco Casaluce September 17, 2019

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
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 13, 2019

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

Francesco Casaluce September 16, 2019

Hi Shannon,

Yes it was exactly what I was looking for.

Thanks but I found a way to do it. 

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 16, 2019

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

Vessie Dracheva June 25, 2021

         

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events