Adding RSS and Atom template variables to the Story Topic.

This commit is contained in:
Colin Kuskie 2009-04-10 23:16:03 +00:00
parent a400d3697f
commit 8b6ff20822
3 changed files with 16 additions and 0 deletions

View file

@ -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;
}

View file

@ -31,6 +31,8 @@ our $HELP = {
{ name => 'topStorySubtitle' },
{ name => 'topStoryUrl' },
{ name => 'topStoryCreationDate' },
{ name => 'rssUrl' },
{ name => 'atomUrl' },
],
related => []
},

View file

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