I want a certain an internal group to see information on all pages in a space. How do I accomplish that? Can I use Site Layouts and set a certain parameter to make sure that it is only the internal group that sees the information.
May be you can do it by customising the PageLayout
I tried to hack something quickly and it worked...
#set ($userGroups = $userAccessor.getGroupNames($action.authenticatedUser)) #set ($groupToMatch = "confluence-administrators") #foreach ($group in $userGroups) #if($group == $groupToMatch) <p>Hello admin!</p> #end #end
to put in a PageLayout before body (for non documentation theme spaces)
<div id="main-content" class="wiki-content"> $body </div>
But, the code will also work for Confluence space layouts / site layouts
Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time! We're looking for people to participate in a remote 1-hr workshop...
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!
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