Are there any plugins, macros, Javascript tricks, or CSS tricks that will allow me to omit or hide the Browse dropdown menu from the top of the page when a user is not logged in? I am using the Documentation Theme in Confluence 4.2.13.
Add this in the Administration > Custom HTML.
<script> AJS.toInit(function(){ if (AJS.params.remoteUser == ''){ AJS.$('#browse-menu-link').hide(); } }); </script>
Thank you. That's works great.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this at all possible with OnDemand version? We are looking to have just a portion of our content public... it would be better to not show things the user can not access.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately you cannot edit such features in OnDemand environment as per its restricted functions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This approach is really problematic in some cases because it is only hide the button but don't prevent access to content itself.
If the customers know that the system being used is confluence he might try and navigate to this pages with the url.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I added the above code in the HEAD section of Custom HTML, but when I try as an anonymous user, the Browse menu is still appearing.
Is there anything else that I need to do?
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.