Fix rendering of the carousel inside of a Story. Fixes bug #12386

This commit is contained in:
Colin Kuskie 2012-09-20 14:00:57 -07:00
parent 50c7634800
commit e046e5a8ce
8 changed files with 55 additions and 4 deletions

View file

@ -966,10 +966,11 @@ sub viewTemplateVariables {
};
++$photoCounter;
}
$var->{hasPhotos} = $photoCounter;
$var->{singlePhoto} = $photoCounter == 1;
$var->{canEdit} = $self->canEdit;
$var->{photoWidth} = $archive->get('photoWidth');
$var->{hasPhotos} = $photoCounter;
$var->{singlePhoto} = $photoCounter == 1;
$var->{canEdit} = $self->canEdit;
$var->{photoWidth} = $archive->get('photoWidth');
$var->{photoHeight} = $archive->get('photoHeight');
return $var;
}

View file

@ -126,6 +126,13 @@ sub definition {
hoverHelp => $i18n->get('photo width help'),
defaultValue => '300',
},
photoHeight => {
tab => 'display',
fieldType => 'integer',
label => $i18n->get('photo height'),
hoverHelp => $i18n->get('photo height help'),
defaultValue => '300',
},
editStoryTemplateId => {
tab => 'display',
fieldType => 'template',