Adding RSS and Atom template variables to the Story Topic.
This commit is contained in:
parent
a400d3697f
commit
8b6ff20822
3 changed files with 16 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@ our $HELP = {
|
|||
{ name => 'topStorySubtitle' },
|
||||
{ name => 'topStoryUrl' },
|
||||
{ name => 'topStoryCreationDate' },
|
||||
{ name => 'rssUrl' },
|
||||
{ name => 'atomUrl' },
|
||||
],
|
||||
related => []
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue