Hello,
Have any of you edited the middle section of the default dashboard, so that anonymous (anyone not logged in) users don't see the All updates section of your site?
I know this is possible via paid plugins, but I was hoping someone could share what they've done to edit the dashboard.
At the least we'd like to hide the entire all updates section and maybe just insert our logo plus a few lines of text.
Thank you!
Jon,
You might already be aware, but users only see updates for pages that they have access to see, so they won't see any updates that they're not supposed to.
A workaround could be to set a different homepage than Dashboard. You can then design the page to appear how you want it to for your users (both anonymous and licensed)
It's not currently possible to set a separate homepage for your anonymous users, but I created a feature request for this a while back if it's something you're interested in:
There may be a way to hide it using javascript, but unfortunately I don't have much experience with this and have been unsuccessful in my attempts. Our Community has been quite successful in the past with modifications using Javascript, so perhaps someone will be able to hop in and give you their advice.
Regards,
Shannon
Hello Jon,
To add to Shannon’s response in regards to the Javascript mention, we have a solution which will work for removing the All Updates from displaying for anonymous users. You will need to apply the following to your Custom HTML within Confluence.
<script type="text/javascript">
AJS.toInit(function(){
if (AJS.params.remoteUser == ''){
AJS.$('section.aui-page-panel-content.content-body').hide();
}
});
</script>
It should look as follows:
Here are examples of what the Dashboard will now show for anonymous users:
And the example for a logged in user:
I hope this helps in removing updates for anonymous users.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stephen, this is great! Exactly what I was looking for - thanks a ton!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jon,
In the event you also want to remove it from the sidebar:
Take care!
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do I remove updates from the "Pages" page as well?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Michael,
Can you confirm that screenshot is indeed from Confluence Server and not Confluence Cloud? This thread is related to Confluence Server specifically where it is possible to customize Confluence using javascript and CSS.
If you're using Confluence Cloud, which it looks like you might be, then this is not possible.
I hope that clarifies things for you, but do let me know if you have any questions about it.
Regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Shannon - Yes, this screen shot is from Confluence Server. We migrated over to Server about a year ago.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Michael,
Thank you for clarifying. That was my mistake, since it looks nearly identical to the Cloud All Updates page, but I see now what you are referring to.
I am not aware of exactly what you might be able to do to remove that section, since that page itself is not customisable. It might be possible to remove it using the Custom HTML page as Stephen showed before, but I can't say for sure what the code will be to remove it.
Another option would be to remove the Pages option from the sidebar if you simply don't want users to navigate to that page. You can do this by clicking Configure Sidebar on the left and remove the Pages option. You can set your page tree to display here on the sidebar as well, so it removes the need for the Pages display if you don't want your users to be able to see all updates.
If you would still like to remove via Javascript, I would encourage you to raise a new question. As this is a separate section than the All Updates in the original post, raising a new question will ensure you get a response from our community based specifically on the feature you want to hide.
Thank you again and take care,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As of 2022 the above JS snippet no longer works due to deprecated AJS calls. I found the following changes will give the desired result again:
<script type="text/javascript">
AJS.toInit(function(){
if (AJS.Meta.get("remote-user") == '') {
AJS.$('.aui-page-panel-content').hide();
}
});
</script>
Tested with Confluence 7.19.3.
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.