tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/11070-cascade-calendar-workflowCascade CMS: Discussion 2015-04-20T12:21:57Ztag:help-archives.hannonhill.com,2010-02-09:Comment/317989452014-02-25T16:00:04Z2015-01-27T16:15:51ZCascade Calendar workflow<div><p>Hi Hosea,</p>
<p>It sounds to me like you'll want to first create a <a href=
"http://www.hannonhill.com/kb/Publish-Set/">Publish Set</a>
containing your index.xml and the main calendar index file. Once
you've done that, you can set up a <a href=
"http://www.hannonhill.com/kb/Workflow/">Workflow</a> that contains
a <a href=
"http://www.hannonhill.com/kb/Workflow-Trigger/available-workflow-triggers/publish-set-trigger.html">
Publish Set Trigger</a> to publish your Publish Set. This way, once
you've created a new event you can have the system automatically
publish the related index files along with your event.</p>
<p>Let me know if this helps!</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/317989452014-02-26T22:53:57Z2015-01-27T16:15:51ZCascade Calendar workflow<div><p>Tim,</p>
<p>Thanks for the reply. It is a great help.</p>
<p>I still have a problem with publishing with publish set trigger.
I think it is with the name value. In the example, it says
“Intranet/Press Releases”. Does intranet mean the site
name? Do I need to include the site name? Here is my workflow
regarding the publishing. Could you please let me know what’s
wrong? Thanks,</p>
<p>Hosea</p>
<pre>
<code><step type="system" identifier="publish" label="Publishing" >
<actions>
<action identifier="publish" label="Completed" move="forward" >
<trigger name="publish" />
</action>
</actions>
</step>
<step type="system" identifier="publishSet" label="Publishing" >
<actions>
<action identifier="publishSet" label="Completed" move="forward" >
<trigger name="publishSet" />
<parameter>
<name>name</name>
<value>Publish Sets/test</value>
</parameter>
</action>
</actions>
</step></code>
</pre></div>Hosea Leetag:help-archives.hannonhill.com,2010-02-09:Comment/317989452014-02-26T22:58:31Z2015-01-27T16:15:51ZCascade Calendar workflow<div><p>Hi Hosea,</p>
<blockquote>
<p>In the example, it says “Intranet/Press Releases”.
Does intranet mean the site name? Do I need to include the site
name?</p>
</blockquote>
<p>The example appears to be from a version of the product before
Site objects were implemented. In this case, Intranet is just
referring to a Publish Set Container in the Publish Sets area of
the system. If your 'Test' Publish Set is not in a container in
your Site, try referring to it like this:<br></p>
<pre>
<code><parameter>
<name>name</name>
<value>/test</value>
</parameter></code>
</pre>
Let me know if that does the trick.
<p>Thanks!</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/317989452014-02-26T23:01:57Z2015-01-27T16:15:51ZCascade Calendar workflow<div><p>I already tried it and it didn’t work.</p></div>Hosea Leetag:help-archives.hannonhill.com,2010-02-09:Comment/317989452014-02-26T23:04:32Z2015-01-27T16:15:51ZCascade Calendar workflow<div><p>Ah, I just noticed a potential problem in your Workflow:<br></p>
<pre>
<code><trigger name="publishSet" />
<parameter>
<name>name</name>
<value>Publish Sets/test</value>
</parameter></code>
</pre>
That parameter element needs to be a child of the trigger element.
Try this:<br>
<pre>
<code><trigger name="publishSet">
<parameter>
<name>name</name>
<value>/test</value>
</parameter>
</trigger></code>
</pre></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/317989452014-02-27T20:13:24Z2015-01-27T16:15:51ZCascade Calendar workflow<div><p>Tim,</p>
<p>Thanks for pointing that mistake. I have solved the issue.</p>
<p>Thanks,<br>
Hosea</p></div>Hosea Leetag:help-archives.hannonhill.com,2010-02-09:Comment/317989452014-02-27T20:52:30Z2015-01-27T16:15:51ZCascade Calendar workflow<div><p>No problem! Thanks for the update, Hosea. Take care!</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/317989452015-01-26T22:49:22Z2015-01-27T16:15:51ZCascade Calendar workflow<div><p>Tim,</p>
<p>In Cascade calendar index file, how can I make the rss feed
displays onl the upcoming events?</p>
<p>Thanks,<br>
Hosea</p></div>ubfhoseatag:help-archives.hannonhill.com,2010-02-09:Comment/317989452015-01-27T14:01:34Z2015-01-27T16:15:50ZCascade Calendar workflow<div><p>Hi Hosea,</p>
<p>If you only wish to display events in the future, you would need
to modify the XSLT Format that outputs the events for the RSS
output and add some logic to check whether or not the current date
is greater than the start date of the event. If it is, you would do
nothing; if it is not, you would choose to display the event.</p>
<p>Let me know if this makes sense.</p>
<p>Thanks</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/317989452015-01-27T16:10:43Z2015-01-27T16:15:50ZCascade Calendar workflow<div><p>Tim,</p>
<p>That’s exactly what I need. I found out that XSL 1.0 does
not support current date function. Do you know how I can do to
this?</p>
<p>Thanks,<br>
Hosea</p></div>ubfhoseatag:help-archives.hannonhill.com,2010-02-09:Comment/317989452015-01-27T16:20:58Z2015-01-27T16:20:58ZCascade Calendar workflow<div><p>Sure thing. The Index Block that the Format is transforming
should have a current-date attribute. For example:<br></p>
<pre>
<code><system-index-block name="all events" type="content_type" current-time="1422375435290"></code>
</pre>
Check out Penny's response on <a href=
"http://help.hannonhill.com/discussions/xslt-formats/18-current-date-comparison-to-datetime-iso-date#comment_2669682">
this old post</a> as it describes something similar to what you are
looking to do. Let me know if that helps you!
<p>Thanks</p></div>Tim