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?
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shannon,
Yes it was exactly what I was looking for.
Thanks but I found a way to do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.