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

0 votes

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!

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
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,182 views 4 6
Read article

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