Ideally, I'd like to be able to hide the entire browse menu from anonymous users, but if that's not possible, can I control what's shown on the browse menu to anonymous users?
Browse to:
Confluence Admin | Look and Feel | Custom HTML
In At end of the HEAD, add some javascript similar to this:
<script>
if (AJS.$('#login-link').length > 0) {
AJS.$('#browse-menu-link').parent().hide();
}
<script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the script I ended up using and I had to put it at the end of the body section.
<script>
if (AJS.$('#login-link').is(":visible"))
{
AJS.$('#space-pages-link').hide();
AJS.$('#space-blogposts-link').hide();
AJS.$('#space-attachments-link').hide();
AJS.$('#space-mail-link').hide();
AJS.$('#space-advanced-link').hide();
AJS.$('#whats-new-menu-link').hide();
AJS.$('#gadget-directory-link').hide();
}
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cool. That will likely do the trick :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My worry is, if you run these scripts, you will lose the edit menu too and be locked out. Any plan for that scenario?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
None of the above will work for OnDemand. Any other ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was able to combine the two above answers and make it work in Confluence 4.2.
I put this script at the End of Body
<script> if (AJS.$('#login-link').is(":visible")) { AJS.$('#browse-menu-link').parent().hide(); } </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is also the excellent Menu Manager Plugin from CustomWare that does the trick brilliantly. https://plugins.atlassian.com/plugin/details/13460
But remember, once you have hidden the commands, the user can still access many of the Confluence features by the URL as definined in this great post http://www.divingintothedetails.com/confluence/urls-to-access-confluence-wiki-functionality/. but most of these do require the confluence pageid.
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.