Hide version picker for spaces with only one version

Comments

5 comments

  • Avatar
    Emre Barlas

    Hi Sara,

    Thank you for reaching out.

    If you have one version only, would you like to publish your content with "Same space publishing" method to make it public to users in Viewport? This way you would not need Versions integration at all and there won't be any version picker.

    For detailed information, please check the article here: https://help.k15t.com/scroll-versions/latest/publish-a-version-110528291.html

    Hope it helps.

    Cheers,
    Emre.

    0
    Comment actions Permalink
  • Avatar
    Sara.Pistoia

    Thank you for your response.

    We would like to keep the Versions workflow management (Draft, Review, Complete) for all spaces. If we disable Versions, won't we lose that feature? 

    0
    Comment actions Permalink
  • Avatar
    Emre Barlas

    Hi Sara,

    I understand. 

    Which theme do you use in Viewport? If you are using Web Help theme, you can change this behaviour in the code. However this won't be possible for Help Center theme. Then the only way would be inserting some custom CSS to disable version picker.

    Would it be a solution for you?

     

    Cheers,

    Emre.

    0
    Comment actions Permalink
  • Avatar
    Sara.Pistoia

    Hello Emre,

    Yes, we are using the Web Help theme. If you could give some guidance on how to disable the version picker when only one version is available in a space, that would be wonderful!

    Thank you.

    0
    Comment actions Permalink
  • Avatar
    Emre Barlas

    Hi Sara,

    Here is some suggestions from our developers:

    A code similar to below snippet could be added to the location where the picker is created.

    #if($versions && $versions.available.size() > 1)
    ##create version picker
    #end

    if you are using a vanilla copy of our WH theme you could replace line 30 of the include-sidebar.vm 

    #if($versions)with #if($versions && $versions.available.size() > 1) 

    Let me know if it helps.

    Emre.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk