Removing/editing the 'All updates' section from default dashboard in Confluence Server
Asked by Jon Bornstein:

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!


Answers:
author: Shannon S
body: 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:

* [CONFSERVER-54457](https://jira.atlassian.com/browse/CONFSERVER-54457) *Option to set a different Site Homepage for Anonymous Users*

There may be a way to hide it [using javascript](https://confluence.atlassian.com/confkb/how-to-use-javascript-in-confluence-313458839.html), 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

comments: author: Stephen Sifers
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/42045iF504013F01E24484/image-dimensions/293x261?v=v2 "image.png")

It should look as follows:

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

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/42046iB0CD71CF669257DB/image-dimensions/384x186?v=v2 "image.png")

And the example for a logged in user:![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/42047iCE53515DE4A40BAF/image-dimensions/387x166?v=v2 "image.png")

I hope this helps in removing updates for anonymous users.

Regards,  
Stephen Sifers


author: Jon Bornstein
body: Stephen, this is great! Exactly what I was looking for - thanks a ton!


author: Shannon S
body: Jon,

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

* [How do I hide "All Updates" or "Popular" from the Dashboard sidebar](https://confluence.atlassian.com/confkb/how-do-i-hide-all-updates-or-popular-from-the-dashboard-sidebar-879956248.html)

Take care!

Shannon


author: Michael Woffenden
body: How do I remove updates from the "Pages" page as well?

![screenshot_2456.png](https://community.atlassian.com/t5/image/serverpage/image-id/55569i41D4258B3CF0CF55/image-size/large?v=v2&px=999 "screenshot_2456.png")


author: Shannon S
body: 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


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


author: Shannon S
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/55772iB29C2742BAC257E9/image-dimensions/272x353?v=v2 "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


author: Andreas Bauer
body: 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.


Tags: confluence-server

server