Using Smart Mover’s Post URL Task you can set an Enterprise "Current Issue" to the “Next Issue”. This allows you to automate this process based on the Channel’s particular scheduling needs.
First copy the SetCurrentIssue.php script found here into your Enterprise/config/ folder.
Next create a new Mover Process with a “Post URL” Task
In the “Static URL” enter something like: http://127.0.0.1/Enterprise/config/SetCurrentIssue.php?pubname=WW%20News&channelname=Print&user=Woodwing
Where your “pubname” is the Brand, “channelname” is the Channel and “user” is an Enterprise User.
Note that these variables need to be URL encoded… for example “WW News” is “WW%20News”…
Leave the Type to “Post”.
You can optionally “Save Results” to a file then email that file to you using Mover’s Send Mail Task. Those results will include the name of the new Current Issue or if there is a problem a description of the error.
This script was tested with Enterprise 10.7.0. If you are using any other version then please test before using in production.
Important notice: This example and code is provided for reference only. It is provided "AS IS," without warranties of any kind. Feel free to use it as a basis to create your own implementation. Do not contact WoodWing Support with questions and issues about this sample. Please post questions and remarks to this thread.
Please sign in to leave a comment.