Hide version picker for spaces with only one version
We have over one hundred spaces using a single viewport, and I want to hide the version picker for those spaces that have only a single version created.
All spaces have an initial version created and it is marked as visible in the viewport.
Ideally, we want to continue to have a single viewport to manage. Is there a way to hide the version picker when only a single version is created in the space?
Thanks!
-
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. -
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.
-
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 theinclude-sidebar.vm
#if($versions)
with#if($versions && $versions.available.size() > 1)
Let me know if it helps.
Emre.
Please sign in to leave a comment.
Comments
5 comments