I would like to show and hide content on a confluence page based on their group membership. The visibility plug-in does not seem to be supported anymore. Any suggestions?
Hi Scott,
The visibility plugin seems to be supported in the latest versions of confluence 5.6.x as we can see here. I believe you can still use it for this request
Cheers,
Rodrigo
Hmm. Thank you. Our IT department is having problems getting the visibility plug-in installed. I guess, we'll have to work out that detail. But I guess it's good to know that it's an option for us.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you truly want the content to be hidden however you need to combine the visibility plugin with the page include plugin. The reason for this is users could just view the source of the page (tools menu -> view source, or if they have edit permissions they could just edit the page and see the information, also the search engine will index the content so they could see it in search. If you truly want it hidden what you need to do is put the content to be hidden on its own page and then give it a viewing restriction to the group or people that view it. Then on another page you would include the hidden content page onto that page and wrap it in the visibility plugin with the save view restrictions that were assigned to the hidden content page. The reason for wrapping the include macro with the visibility macro is to avoid the error that would be shown to users who don't have viewing rights to the hidden content. This is the way to truly make the content hidden.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You made a really good point. The users of the page won't have edit permissions. But I love your approach to use the include plug-in and restrict the content. If only the include plug-in would render nothing if the user doesn't have permission. Or even better, give us the option to either display an error or nothing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It does show an error message, but preemted with a respective warning, this should work fine.
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.