Display alternative content for anonymous users in Confluence

I set up an home page for our Confluence installation that lists the top level pages for every space. The wiki is open for guest users but some space content must be visible only to registered users.

If I use the Page Tree macro, anonymous user are forced to login in order to display the page.

If I use the Children macro, I get this message "Unable to render {children}. Page not found: CS:Configurazioni Server."

Is there a way (native/plugin/macro) to display an alternative text if there's some kind of authorization limitation over the content?

For example, something like "To visualize this content you need to be logged in".

2 answers

You could set the global permissions to allow anonymous access to the site, then set each space permission to disable anonymous viewing.

This is what I did, but if I insert in the home page a Page Tree macro that lists the top level pages of a restricted space, anonymous users are forced to log in.

The Customware Visibility Plugin is great for this. We have it set up to display a disclaimer to people who aren't logged in (i.e. Annonymous) which users who are logged in won't see.

And it's free!

https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.visibility

Thank you :-) This plugin should solve my problem, but I think it's not compatible with the latest version of Confluence. I tryed installing it but I got this error

Plugin installation failed: Failed to resolve plugin dependencies within OBR [plugin_6327012005172267721_visibility-plugin-2.1.0.obr]

I'm using Confluence 5.2.3

As of today (9/11/2013) it's listed as compatible with 5.1.5 and below.

Although you might want to try and install it using confluence's hidden plugin screen. I usually have better luck installing plugins from here. Sometimes the regular Manage Add-on screen just craps out.

http://yourdomain/admin/viewplugins.action

Sorry, it doesn't work. Let's hope they'll update the plugin :-)

Sean King - how do you have the Visibility plugin only show to Anonymous users? I put "anonymous" as the user or group, and it doesn't display to non-logged in users.

David Hergert - You can use the "hide if" macro with confluence-users added to the user group to hide from anyone logged in. You can then use the "show if" with the same group added to do the opposite and only show to people logged in.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Monday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

226 views 3 3
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