Hide Help

Comments

10 comments

  • Avatar
    Amit Kapoor

    In custom theme or default theme (scroll-webhelp), this works:

    Create a file called theme.properties at the root of the theme below other files like page.vm etc.

    Add this to that file:

    theme.enableViewportControl=false

    This will hide the control opener.

    0
    Comment actions Permalink
  • Avatar
    Christian Sprenger

    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

    0
    Comment actions Permalink
  • Avatar
    Amit Kapoor

    Have you tried adding display:none property for that specific element in your theme's CSS? That should just hide it.

    0
    Comment actions Permalink
  • Avatar
    Volker Weinreich

    Hello Christian,

    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>
    </div>
    #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
    <p>
    <a href="$baseUrl/pages/viewpage.action?pageId=$page.id">Viewport-Vorschau beenden</a>
    </p>
    </div>
    ## don't show vieport control for all other users
    #else
    <a id="sp-viewport-control-opener" href="#" style="display:none"></a>
    #end
    </div>

    You can add an edit button too by adding

    <p>
    <a href="$baseUrl/pages/editpage.action?pageId=$page.id">Seite editieren</a>
    </p>

    Greetings,

    Volker

    0
    Comment actions Permalink
  • Avatar
    Christian Sprenger

    Hello Amit, unfortunately, it does not really work.

    Hello Volker, thanks for the detailed description.
    As I have many links on the header bar already, I do not want to add a link there.
    I simply want to hide (or change) the link to K15t

    0
    Comment actions Permalink
  • Avatar
    K15t Team

    Hi Christian,

    Creating a completely new view, as Volker suggests, is a good solution. If the header isn't the ideal place, you could maybe consider embedding this view in a different position?

    Cheers,

    Laura

    0
    Comment actions Permalink
  • Avatar
    Christian Sprenger

    Hello Laura,

    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.

    BR
    Christian

    0
    Comment actions Permalink
  • Avatar
    Volker Weinreich

    Hello Christian,

    since the viewport control is in an iframe, it's a bit tricky to change the stylesheets for it. Since I'm not a web developer either and do such things on the side, I can't post you a solution directly, but if I find something, I'll post it here.

    See you

    Volker

    0
    Comment actions Permalink
  • Avatar
    K15t Team

    +1 to what Volker says. I understand that re-building a control panel when you already have one provided by us doesn't feel like the most efficient solution. However, there is no easy way to just remove the last link, as it's not separated from the other links in the iframe.

    0
    Comment actions Permalink
  • Avatar
    Christian Sprenger

    Dears, thank you very much for your answers and your support, appreciated.

    I'll try to find some time to do that.

    As we use the Help Center, which is not as "easy" to mod as the regular, I need more time to do that.

    Again, thanks a lot!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk