Skip to main content
Known Participant
July 14, 2020
Question

Determine if output is in Preview or Published?

  • July 14, 2020
  • 1 reply
  • 248 views

Is there an easy way to identify is a project is being shown from Preview or from being Published?

E.g. a global variable that indicates this automatically.

I want to determine this in order to adjust path references that are to be different if Published or run as a Preview.

    This topic has been closed for replies.

    1 reply

    Stagprime2687219
    Legend
    July 14, 2020

    Not sure if I follow...

    You can only launch a "preview" from within Captivate so I would think you would know because you made the choice just then to preview - as in HTML5 in Browser. So - really - the preview is limited to the developer.

     

    No one else is going to see your project unless you publish it - or perhaps give them your project file.

    In that light, you could easily tell by looking at the URL

    In preview - it would indicate as such in the URL

    If published, the URL would match the location where the files are stored.

     

    Am I missing something in your question?

     

     

    Stagprime2687219
    Legend
    July 14, 2020

    A published project would typically have all the elements of the project packaged with it - unless you are doing something with the project after you publish it.

    This means you can grab that published folder and place it in multiple locations and all the stuff needed for it to work should follow along.

    Even things like HTML5 animations that are created externally but brought into Captivate are packaged up as well.

    In the case of an HTML5 Animation - it would be placed in the wor folder upon publish.

    I believe that to stand for  Web Object Resources