Using Publish Triggers to update HTML of a page

ces55739's Avatar

ces55739

30 Jul, 2014 05:57 PM

Hello,

I am wondering if it is possible to use Publish Triggers to add/modify the html of a webpage?

The second thing: Is it possible to use Publish Triggers to modify the cascade elements of a webpage?

Any thoughts are appreciated!

I should also note that it is the plug-in Publish Trigger and not a Wokflow Publish Trigger. http://www.hannonhill.com/kb/Publish-Triggers/

  1. 1 Posted by Ryan Griffith on 31 Jul, 2014 12:40 PM

    Ryan Griffith's Avatar

    Hi,

    Updating the HTML of a page should definitely be possible. Are you referring to a published page by chance? If so, you would most likely need to call a script on that server that modifies the file on the server.

    The second thing: Is it possible to use Publish Triggers to modify the cascade elements of a webpage

    This should be possible using the Web Services API from within your Publish Trigger.

    Note: Publish Triggers are called for every asset that is published, so you would want to add in some checks to make sure you are updating things appropriately and not too frequently.

    Please let me know if you have any questions.

    Thanks!

  2. 2 Posted by ces55739 on 31 Jul, 2014 01:47 PM

    ces55739's Avatar

    Thanks for the help.

    For the second question, is there a friendly place that the Web Services API is located?

  3. 3 Posted by Ryan Griffith on 31 Jul, 2014 02:05 PM

    Ryan Griffith's Avatar

    Not a problem at all.

    Actually, my apologies, you wouldn't need Web Services here. Instead, you can use the Cascade Server API that is included with the Publish Trigger SDK. Specifically, you will have access to various operations (ie read and edit), as well as various methods for the different types of assets.

    Here is a sample Publish Trigger I wrote for a client that calls an external script. This has an example of how to read a file or page. Here is another sample Publish Trigger that demonstrates reading an asset and uploading a .docx version of the file onto a web server.

    Please let me know if you have any questions.

    Thanks!

  4. Ryan Griffith closed this discussion on 20 Aug, 2014 01:07 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac