Cascade Calendar workflow

Hosea Lee's Avatar

Hosea Lee

25 Feb, 2014 03:45 PM

We implemented Cascade calendar recently. However it turned out that whenever we add an event, we need to publish that event file as well as the index.xml in the same folder and the main calendar index file.

How can we handle this into a workflow? or is there a better way to handle this?

  1. Support Staff 1 Posted by Tim on 25 Feb, 2014 04:00 PM

    Tim's Avatar

    Hi Hosea,

    It sounds to me like you'll want to first create a Publish Set containing your index.xml and the main calendar index file. Once you've done that, you can set up a Workflow that contains a Publish Set Trigger 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.

    Let me know if this helps!

  2. 2 Posted by Hosea Lee on 26 Feb, 2014 10:53 PM

    Hosea Lee's Avatar

    Tim,

    Thanks for the reply. It is a great help.

    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,

    Hosea

        <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>

  3. Support Staff 3 Posted by Tim on 26 Feb, 2014 10:58 PM

    Tim's Avatar

    Hi Hosea,

    In the example, it says “Intranet/Press Releases”. Does intranet mean the site name? Do I need to include the site name?

    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:

    <parameter> 
         <name>name</name> 
         <value>/test</value> 
    </parameter>
    
    Let me know if that does the trick.

    Thanks!

  4. 4 Posted by Hosea Lee on 26 Feb, 2014 11:01 PM

    Hosea Lee's Avatar

    I already tried it and it didn’t work.

  5. Support Staff 5 Posted by Tim on 26 Feb, 2014 11:04 PM

    Tim's Avatar

    Ah, I just noticed a potential problem in your Workflow:

    <trigger name="publishSet" /> 
                <parameter> 
                    <name>name</name> 
                    <value>Publish Sets/test</value> 
                </parameter>
    
    That parameter element needs to be a child of the trigger element. Try this:
    <trigger name="publishSet"> 
                <parameter> 
                    <name>name</name> 
                    <value>/test</value> 
                </parameter> 
    </trigger>
    
  6. 6 Posted by Hosea Lee on 27 Feb, 2014 08:13 PM

    Hosea Lee's Avatar

    Tim,

    Thanks for pointing that mistake. I have solved the issue.

    Thanks,
    Hosea

  7. Support Staff 7 Posted by Tim on 27 Feb, 2014 08:52 PM

    Tim's Avatar

    No problem! Thanks for the update, Hosea. Take care!

  8. Tim closed this discussion on 27 Feb, 2014 08:52 PM.

  9. ubfhosea re-opened this discussion on 26 Jan, 2015 10:49 PM

  10. 8 Posted by ubfhosea on 26 Jan, 2015 10:49 PM

    ubfhosea's Avatar

    Tim,

    In Cascade calendar index file, how can I make the rss feed displays onl the upcoming events?

    Thanks,
    Hosea

  11. Support Staff 9 Posted by Tim on 27 Jan, 2015 02:01 PM

    Tim's Avatar

    Hi Hosea,

    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.

    Let me know if this makes sense.

    Thanks

  12. 10 Posted by ubfhosea on 27 Jan, 2015 04:10 PM

    ubfhosea's Avatar

    Tim,

    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?

    Thanks,
    Hosea

  13. Support Staff 11 Posted by Tim on 27 Jan, 2015 04:20 PM

    Tim's Avatar

    Sure thing. The Index Block that the Format is transforming should have a current-date attribute. For example:

    <system-index-block name="all events" type="content_type" current-time="1422375435290">
    
    Check out Penny's response on this old post as it describes something similar to what you are looking to do. Let me know if that helps you!

    Thanks

  14. Tim closed this discussion on 20 Apr, 2015 12:21 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