Live vs Working status

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Live vs Working status

Jonathan Laughlin

Hello-

 

Anyone know a way of determining IN VELOCITY (viewtool or other) whether a piece of content is live or merely “saved?” (working, not published)

 

I’m trying to have a particular content detail page behave in one way if the content is in a saved-but-not-published state.

 

Thanks!
Jonathan

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/1106F7C9-EB72-4757-AA84-69E163357E8D%40calvin.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Live vs Working status

Mark Pitely
There's no way to tell from the particular piece itself via velocity itself (no commands or information on the content).
However, you should be able to do a query with +live and the content data and see if you get no hits or a different identifier.
If you need code for that let me know how you are getting the content in the first place (i.e. dotcontent.find / dotcontent.pull / URLMap)

M

On Thu, Dec 7, 2017 at 3:00 PM, Jonathan Laughlin <[hidden email]> wrote:

Hello-

 

Anyone know a way of determining IN VELOCITY (viewtool or other) whether a piece of content is live or merely “saved?” (working, not published)

 

I’m trying to have a particular content detail page behave in one way if the content is in a saved-but-not-published state.

 

Thanks!
Jonathan

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/1106F7C9-EB72-4757-AA84-69E163357E8D%40calvin.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAFeiKqN_e3eEN4fpgkjzzeFSPuR-F28rtHNFNFCGdmsb%2BDMiYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.