Forums

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

Removing/editing the 'All updates' section from default dashboard in Confluence Server

Jon Bornstein January 7, 2019

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!

2 answers

1 accepted

2 votes
Answer accepted
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2019

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

Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2019

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>

image.png

It should look as follows:

Here are examples of what the Dashboard will now show for anonymous users:

image.png

And the example for a logged in user:image.png

I hope this helps in removing updates for anonymous users.

Regards,
Stephen Sifers

Like Mehran Moss likes this
Jon Bornstein January 9, 2019

Stephen, this is great!  Exactly what I was looking for - thanks a ton!

Like # people like this
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 10, 2019

Jon,

In the event you also want to remove it from the sidebar:

Take care!

Shannon

Like Deleted user likes this
Michael Woffenden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2019

How do I remove updates from the "Pages" page as well?

screenshot_2456.png

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

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

Michael Woffenden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 24, 2019

Shannon - Yes, this screen shot is from Confluence Server.  We migrated over to Server about a year ago.

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

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.

Screenshot 2019-05-27 at 10.42.56.png

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

0 votes
Andreas Bauer November 8, 2022

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events