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.
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
Just found these pages that can be also of help for other similar situations:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.