CG Calendar RSS Feed
Posted: Wed Jun 23, 2010 2:04 pm
Hello,
I am using the Calguys Feed Maker for the CGCalendar RSS Feed.
Is it possible to generate a unique code in calendar template instead of the {$event.url}?
This is the template;
{* original rss feed template *}
{* snarfed from the forum post by Inula, and slightly modified *}
{* note: if you have not configured pretty urls or mod rewrite, the next line may fail when trying to validate the feed *}
{$feed.title}
{if isset($feed.link) && !empty($feed.link)}{$feed.link}{/if}
{if isset($feed.description) && !empty($feed.description)}{$feed.description}{/if}
{if isset($feed.copyright) && !empty($feed.copyright)}{$feed.copyright}{/if}
{if isset($feed.managing_editor) && !empty($feed.managing_editor)}{$feed.managing_editor}{/if}
{if isset($feed.image) && !empty($feed.image)}
{if isset($feed.description) && !empty($feed.description)}{$feed.description}{/if}
{if isset($feed.link) && !empty($feed.link)}{$feed.link}{/if}
{$feed.title}
{$file_location}/{$feed.image}
{/if}
{capture assign='kalender'}
{* note, the output from this module call is discarded, however the smarty variables will still exist *}
{* note, you may want to adjust the parameters to this module call to gather different events *}
{cms_module module="CGCalendar" unique_only='true' display="upcominglist"}
{/capture}
{foreach from=$events key=key item=event}
{$event.event_title}
{$event.url}
{assign var=description value=$event.title}
{if $event.event_summary != ''}
{assign var=description value=$event.summary}
{/if}
{$description}
{$event.event_date_start|date_format:"%Y-%m-%eT%H:%M:%S%z"}
{$event.event_date_end|date_format:"%Y-%m-%eT%H:%M:%S%z"}
false
{$event.url}
{/foreach}
Many thanks!
Dave
I am using the Calguys Feed Maker for the CGCalendar RSS Feed.
Is it possible to generate a unique code in calendar template instead of the {$event.url}?
This is the template;
{* original rss feed template *}
{* snarfed from the forum post by Inula, and slightly modified *}
{* note: if you have not configured pretty urls or mod rewrite, the next line may fail when trying to validate the feed *}
{$feed.title}
{if isset($feed.link) && !empty($feed.link)}{$feed.link}{/if}
{if isset($feed.description) && !empty($feed.description)}{$feed.description}{/if}
{if isset($feed.copyright) && !empty($feed.copyright)}{$feed.copyright}{/if}
{if isset($feed.managing_editor) && !empty($feed.managing_editor)}{$feed.managing_editor}{/if}
{if isset($feed.image) && !empty($feed.image)}
{if isset($feed.description) && !empty($feed.description)}{$feed.description}{/if}
{if isset($feed.link) && !empty($feed.link)}{$feed.link}{/if}
{$feed.title}
{$file_location}/{$feed.image}
{/if}
{capture assign='kalender'}
{* note, the output from this module call is discarded, however the smarty variables will still exist *}
{* note, you may want to adjust the parameters to this module call to gather different events *}
{cms_module module="CGCalendar" unique_only='true' display="upcominglist"}
{/capture}
{foreach from=$events key=key item=event}
{$event.event_title}
{$event.url}
{assign var=description value=$event.title}
{if $event.event_summary != ''}
{assign var=description value=$event.summary}
{/if}
{$description}
{$event.event_date_start|date_format:"%Y-%m-%eT%H:%M:%S%z"}
{$event.event_date_end|date_format:"%Y-%m-%eT%H:%M:%S%z"}
false
{$event.url}
{/foreach}
Many thanks!
Dave