tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/13092-custom-execution-after-publish-completesCascade CMS: Discussion 2014-07-01T20:01:18Ztag:help-archives.hannonhill.com,2010-02-09:Comment/334948512014-06-22T16:13:48Z2014-06-22T16:13:48ZCustom execution after publish completes<div><p>Hi zou,</p>
<p>I made a similar wish a while ago (see <a href=
"http://help.hannonhill.com/discussions/web-services/1339-event-handling-model-in-web-services">
Event Handling Model In Web Services?</a>), though it is very
unlikely that it would come true.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/334948512014-06-23T12:48:47Z2014-06-23T12:48:47ZCustom execution after publish completes<div><p>Hi,</p>
<p>As Wing and I <a href=
"http://help.hannonhill.com/discussions/web-services/1339-event-handling-model-in-web-services">
discussed previously</a>, this is functionality is not currently
built into Cascade Server. The closest concept to this would be
<a href="http://www.hannonhill.com/kb/Publish-Triggers/">Publish
Triggers</a>, which are executed prior to the publish operation
taking place.</p>
<p>As I mentioned to Wing, I highly recommend posting a suggestion
to our <a href="http://ideas.hannonhill.com/">Idea Exchange</a> for
others to vote up and/or comment on. Let me know if you need access
to the Idea Exchange and I will send over an invitation.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/334948512014-06-23T13:22:14Z2014-06-23T13:22:14ZCustom execution after publish completes<div><p>Thank you Wing and Ryan. Your feed back was very informative and
helpful. Thanks again.</p></div>zoutag:help-archives.hannonhill.com,2010-02-09:Comment/334948512014-06-23T14:28:21Z2014-06-23T14:28:21ZCustom execution after publish completes<div><p>Not a problem at all.</p>
<p>Actually, I was mistaken, <a href=
"http://www.hannonhill.com/kb/Publish-Triggers/">Publish
Triggers</a> execute <strong>after</strong> the transmission
occurs, so this may be a possible solution for you.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/334948512014-06-23T14:30:55Z2014-06-23T14:30:55ZCustom execution after publish completes<div><p>Ryan,</p>
<p>The publish triggers won't do because we are talking about
execution of code outside Cascade. We just need to be informed that
the event occurs.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/334948512014-06-23T15:02:49Z2014-06-23T15:02:49ZCustom execution after publish completes<div><p>Hi Wing,</p>
<p>Although not ideal, you can create a Publish Trigger that calls
an external script. <a href=
"https://gist.github.com/rgriffith/7ad8e1639dc77e4dde7f">Here is a
sample Publish Trigger</a> I provided a client recently that does
just this.</p>
<p>To summarize, you configure the Publish Trigger with a URL to
the script and it will POST information about the asset being
published (id, path, and Site id).</p>
<p>Note: currently, this trigger calls the external script for
every Asset that is published. This also includes Assets that are
published via Smart Publishing as well (ie Assets that are
internally linked to the one currently being published).</p>
<p>For information regarding setting up the development environment
and deploying your custom Publish Trigger, see <a href=
"http://www.hannonhill.com/kb/Publish-Triggers/index.html#technical">
this page</a>.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/334948512014-06-24T11:56:47Z2014-06-24T11:56:47ZCustom execution after publish completes<div><p>Ryan,</p>
<p>Thank you for the important information. Plugins and triggers
will be my next project after web services.</p>
<p>Wing</p></div>Wing Ming Chan