Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Public wiki anonymous

Hello.

I have public wiki with any spaces. 

How do I hide the update history of spaces for anonymous users? Highlighted in red in the screenshot.Screenshot_1.jpg

1 answer

Hi @Sergey 123 ,

I would do something like this:

1. At the global stylesheet (General Configuration > Look and Feel) add the following: [data-macro-name="recently-updated"] { display: none; }

2. At the custom HTML page (General Configuration > Look and Feel) add the following script:

<script type="text/javascript">
    AJS.toInit(function(){
        if (AJS.params.remoteUser != ''){
          AJS.$('[data-macro-name="recently-updated"]').show();
        }
    });
</script>

Basically, what you are doing is hiding the Recently Updated panel from everyone by default and then showing it only for authenticated users.

You can also skip the first step and modify the following block in the second:

        if (AJS.params.remoteUser == ''){
          AJS.$('[data-macro-name="recently-updated"]').hide();
        }

This will hide the panel from any anonymous. The only downside to it is that depending at the speed the script is executed the users may see still the Recently Updated panel showing up and then disappearing. That is why I consider the first approach more appealing.

Hope it helps.

Cheers,

Vitor

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.7.3
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

218 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you