When a user has allowance to view Confluence page, the _Viewport Control_ opens
As noone but Administrator require access to Scroll Viewport Documentation, I'd like to hide the section of help
If this is not possible, maybe I can change the link to our internal help page?
Thank you Amit for your reply.
This will hide the whole button, but I only want to hide the _Help_ Section, because I still need the button to switch to Confluence View.
I only want to disable the link to K15t, as this is, for regular users, not helpful, as regular users will not need to adapt the Theme
I have created a different view for our authors for exactly this case. First I hide the viewport control completely and then I show certain buttons to the users who have editing rights. Actually, they only need one button to get back to the normal Confluence view. Administrators see the normal control with all buttons. I have put the following code into the headerbar. You can adapt the layout by changing the css.
<div id="lis-conf-view" class="flex-item">
#if($user.isInGroup("administratoren")) ## check if user is in group of administrators
<div id="lis-viewport-admin"> ## show viewport control
<a id="sp-viewport-control-opener" href="#" class="sp-aui-icon-small sp-aui-iconfont-confluence ht-header-icon ht-confluence-button"></a>
#elseif($user.isInGroup("confluence-users") && $page.canEdit) ## check if user has edit rights and is in group of "normal" confluence users
<div id="lis-viewport-author"> ## show buttons to get back to normal confluence view
<a href="$baseUrl/pages/viewpage.action?pageId=$page.id">Viewport-Vorschau beenden</a>
## don't show vieport control for all other users
<a id="sp-viewport-control-opener" href="#" style="display:none"></a>
You can add an edit button too by adding
<a href="$baseUrl/pages/editpage.action?pageId=$page.id">Seite editieren</a>
actually, I created a new View, from a template.
But with that it is the same: I am not looking for adding a new Menu anywhere, the only thing I've been looking for is to simply remove the Link to K15t help page, because I like the already existing menu.
For me it does not make sense to redefine the wheel when the wheel already exists. I only want one of the already existing buttons of the wheel doing something else resp. to hide one of the buttons.
But when this will be the only solution then I will need some time to do that, because I do the Administration mainly as a hobby and have not much time for building a new wheel (as I am also not a specialists of creating wheels).
Thanks again for your replies.
Please sign in to leave a comment.