Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically Hiding Content (remove content) from page based on group

Dan Tascher June 4, 2019

I am looking to have a confluence page contain an entire set of data, Set A, B, and C.  Based on the group the user is in, I only want certain sets of data to display.  For example, let's say you are in Group 1 you only see set A and C.  Group 2 only sees set B, etc.  I have done some searching and I have found some macros and plugins that will change the CSS of the page to set the display to "none" based on the group or user, but I am looking to filter out that content completely.  The reason is I do not want users being able to view the source of the page and view the data in the other sets or having some website crawl the page and index the data they aren't supposed to see.

I feel like there HAS to be a way to do this, but I haven't found an answer yet besides the plugins that just change the visibility.

Any help or suggestions would be appreciated.

Thanks.

1 answer

0 votes
JP _AC Bielefeld Leader_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 4, 2019

You could use a combination of Excerpt / Excerpt Include macros & a set of pages A B C and the result page. Make pages A B and C restricted for the users allowed to see the content & put the content inside an Excerpt macro in these pages. Then edit the result page to display the excerpts of A B and C with an Excerpt Include macro. Haven't tried it, though...

You won't be able to do this with a single page without buying an addon.

Best

JP

Dan Tascher June 4, 2019

I am definitely open to buying an addon, do you know of any that do this?  I couldn't find any.

Thanks.

JP _AC Bielefeld Leader_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 4, 2019
Dan Tascher June 4, 2019

It looked like this did what I wanted so I contacted their support and they told me that it does, in fact, prevent the data from being sent to the browser so I installed the trial and it does indeed do that.  The only problem is that it appears if you click on the "..." menu and then "View Source" to view the markup of the page you can see all the hidden content....Whoops!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events