Fix rendering of the carousel inside of a Story. Fixes bug #12386
This commit is contained in:
parent
50c7634800
commit
e046e5a8ce
8 changed files with 55 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue