How to set a page to live using Future Status & workflow using a trigger?


(Adamskee) #1
i am attempting to configure a trigger to set a page live after workflow approval. 
 
this in itself is easy and i have this working but when an editor from within edit+ sets a future status to go live (as shown in the screengrab) the trigger ignores this future status and makes the page live, completely ignoring it. 
 
i assume there is a way within the trigger system to target the "future status" (date/time) set by the user and use this to control the go live trigger but i am unable to find any way to do this. 
 
within "Set Future Status" in triggers there are only these options:
  • immediately when this trigger is fired
  • at exactly

    Select a single fixed date and time using the boxes above.

  • as determined from Asset 
  • as determined from Metadata Field   Id : # 

    (NB. Metadata Date Field must provide ISO8601 format as Y-m-d H:i:s)

any suggestions are appreciated, thanks

#2

I am assuming that  this user will only have write access to the asset? as they are applying for approval via workflow. write permission users - should not be able to set the future status of the asset. The future status will be set up to run as their user and the cron will not run it, as they will not have the admin permission on the assets.  The will be able to set an time for sure - but it won't run.

 

If they have admin permissions and there is no workflow - they will be able to set the asset live.

 

Though we are using very basic workflow so I may be out of my depth here.

Unless you can have it on the metadata screen on the asset - so the user can set a go live time - then reference that keyword on the trigger itself when setting it up.


#3

http://forums.squizsuite.net/index.php?showtopic=3173&hl=%2Bcron+%2Bmanager+%2Bdeadlock#entry15901