From 8b6ff20822834d3534679588fdab595805dcc695 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 10 Apr 2009 23:16:03 +0000 Subject: [PATCH] Adding RSS and Atom template variables to the Story Topic. --- lib/WebGUI/Asset/Wobject/StoryTopic.pm | 2 ++ lib/WebGUI/Help/Asset_StoryTopic.pm | 2 ++ lib/WebGUI/i18n/English/Asset_StoryTopic.pm | 12 ++++++++++++ 3 files changed, 16 insertions(+) diff --git a/lib/WebGUI/Asset/Wobject/StoryTopic.pm b/lib/WebGUI/Asset/Wobject/StoryTopic.pm index 3839b151e..7fbdf4139 100644 --- a/lib/WebGUI/Asset/Wobject/StoryTopic.pm +++ b/lib/WebGUI/Asset/Wobject/StoryTopic.pm @@ -168,6 +168,8 @@ sub viewTemplateVariables { ##TODO: Photo variables } $var->{standAlone} = $self->{_standAlone}; + $var->{rssUrl} = $self->getUrl('func=viewRss'); + $var->{atomUrl} = $self->getUrl('func=viewAtom'); return $var; } diff --git a/lib/WebGUI/Help/Asset_StoryTopic.pm b/lib/WebGUI/Help/Asset_StoryTopic.pm index dc1e7bf0b..102270ef1 100644 --- a/lib/WebGUI/Help/Asset_StoryTopic.pm +++ b/lib/WebGUI/Help/Asset_StoryTopic.pm @@ -31,6 +31,8 @@ our $HELP = { { name => 'topStorySubtitle' }, { name => 'topStoryUrl' }, { name => 'topStoryCreationDate' }, + { name => 'rssUrl' }, + { name => 'atomUrl' }, ], related => [] }, diff --git a/lib/WebGUI/i18n/English/Asset_StoryTopic.pm b/lib/WebGUI/i18n/English/Asset_StoryTopic.pm index de29aa089..49c0e2b34 100644 --- a/lib/WebGUI/i18n/English/Asset_StoryTopic.pm +++ b/lib/WebGUI/i18n/English/Asset_StoryTopic.pm @@ -123,6 +123,18 @@ our $I18N = { lastUpdated => 0, }, + 'rssUrl' => { + message => q|The URL for the RSS feed for this Story Archive.|, + context => q|Template variable.|, + lastUpdated => 0, + }, + + 'atomUrl' => { + message => q|The URL for the Atom feed for this Story Archive.|, + context => q|Template variable.|, + lastUpdated => 0, + }, + }; 1;