I am currently looking at a way to see if the content has already been published once, I am in need of automating something, but I don’t want it to resend if it has already been published before. For example it was published pulled back to draft and the republished or if it was published and edited and re-published.
Is this possible or do I need to put some form of tracking in place?
Bit that denotes if the content has been published or not
*/
boolean function isContentPublished(){
return ( getIsPublished() AND getPublishedDate() LTE now() ) ? true : false;
}
It looks like when you first do drafting the published date is set without the seconds, now it could mean that if you do save this at the exact moment the seconds is at zero then you might be in trouble but that could work as a temp solution.