Is it possible to customize Anonymous Access - view?

It seems that we can only use the pre-defined permissions for Anonymous Access in Spaces Admin (view)/Administration (global - can use).

I am curious to know if it is possible to achieve the following:

Suppose there is a space called tux, I want anonymous (non-login) users to be able to see the page names (titles) but not the contents of the pages. In other words, anonymous users will be able to see the space's pages tree structure but when they click on the pages they don't see the contents (contents hidden).

Cheers,

Terry

2 answers

This widget could not be displayed.

Not possible without hacking. The right approach will be to edit the templates to check if user is null or not but you can use some javascript to hide the content as well.

In the latter, the user will still be able to view it from source and hence not recommended for secure data!

This widget could not be displayed.

As Jobin mentioned above, you can edit the template/Velocity files and I do think that this is the best approach (although not recommended) rather than using JavaScript. You can refer to the following KB on how to do it: How to Display Different Appearance for Different Users Using Confluence Layouts

You can try to experiment by editing the Layouts page in Confluence Admin.

Please also note that if you are using Documentation Theme, any changes made to Layouts or Velocity files in Installation Directory won't affect the Documentation Theme. You need to edit the .vm files in doctheme-x.x.x.jar file as this is a bundled plugin. More info here: How to Edit Bundled or System Plugins

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

602 views 8 6
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you