Forum Discussion

wpigoury's avatar
wpigoury
Mentor
12 years ago

Get current studio revision from within component

Hi,

 

Is it possible to retrieve the current studio revision from within a component ?

I wish to automatically clear some localStorage variables each time a new version is published to production.

 

Thanks.

    • wpigoury's avatar
      wpigoury
      Mentor

      Nope, not at all, what I would like is to get the version shown in the revision manager (apparently the Apache Subversion revision number) which is incremented each time something is saved in the studio.

      The one which is used to manage the self publication.

       

      None of the application context variables gives me this number and I haven't found anything related in the rest api documentation either.

      • YuriK's avatar
        YuriK
        Khoros Expert
        Hey wpigoury,

        If I understand you correctly, you want the revision number of the plugin (studio customizations) that is currently live on prod. The number that you see in the publishing page if you are using studio publish.

        If that is the case, we currently don't expose that in freemarker or through rest APIs. Can you please add this as an idea to our idea boards? http://lithosphere.lithium.com/t5/customer-ideas/idb-p/Lithium_Ideas

        Thank you,

        Yuri