rfe #12016 for the top story as well
This commit is contained in:
parent
006c27f582
commit
2208864504
4 changed files with 9 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
7.10.8
|
||||
- rfe #12016 for the top story as well
|
||||
|
||||
7.10.7
|
||||
- rfe #10521: Use monospaced font in template edit textarea
|
||||
|
|
|
|||
|
|
@ -236,6 +236,7 @@ sub viewTemplateVariables {
|
|||
my $topStoryVars = shift @{ $var->{story_loop} };
|
||||
##Note, this could have saved from the loop above, but this looks more clean and encapsulated to me.
|
||||
my $topStory = WebGUI::Asset->new($session, $topStoryData->{assetId}, $topStoryData->{className}, $topStoryData->{revisionDate});
|
||||
$var->{topStory} = $topStoryVars;
|
||||
$var->{topStoryTitle} = $topStory->getTitle;
|
||||
$var->{topStorySubtitle} = $topStory->get('subtitle');
|
||||
$var->{topStoryUrl} = $session->url->append($self->getUrl, 'func=viewStory;assetId='.$topStoryData->{assetId}),
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ our $HELP = {
|
|||
{ name => 'editIcon' },
|
||||
],
|
||||
},
|
||||
{ name => 'topStory' },
|
||||
{ name => 'topStoryDeleteIcon',
|
||||
description => 'deleteIcon', },
|
||||
{ name => 'topStoryEditIcon',
|
||||
|
|
|
|||
|
|
@ -93,6 +93,12 @@ our $I18N = {
|
|||
lastUpdated => 1248191575,
|
||||
},
|
||||
|
||||
'topStory' => {
|
||||
message => 'Variable containing the same kind of values as story_loop, but for the topStory. Accessible via topStory.hasPhotos, etc.',
|
||||
context => 'Template variable.',
|
||||
lastUpdated => 1294761543,
|
||||
},
|
||||
|
||||
'topStoryUrl' => {
|
||||
message => q|The URL to view the top story.|,
|
||||
context => q|Template variable.|,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue