don't show lightbox if image is large
This commit is contained in:
parent
feb6ea1a06
commit
4a6d5abefc
2 changed files with 2 additions and 0 deletions
|
@ -117,6 +117,7 @@
|
||||||
<tal:img condition="cell/img">
|
<tal:img condition="cell/img">
|
||||||
<a dojoType="dojox.image.Lightbox" group="mediasset"
|
<a dojoType="dojox.image.Lightbox" group="mediasset"
|
||||||
i18n:attributes="title"
|
i18n:attributes="title"
|
||||||
|
tal:omit-tag="python:part.imageSize in ('large',)"
|
||||||
tal:attributes="href cell/img/fullImageUrl;
|
tal:attributes="href cell/img/fullImageUrl;
|
||||||
title python: cell.img['description'] or cell.img['title']">
|
title python: cell.img['description'] or cell.img['title']">
|
||||||
<img tal:condition="showImageLink|python:False"
|
<img tal:condition="showImageLink|python:False"
|
||||||
|
|
|
@ -158,4 +158,5 @@ class TargetLayoutInstance(NodeLayoutInstance):
|
||||||
target = self.viewAnnotations.get('target')
|
target = self.viewAnnotations.get('target')
|
||||||
if target is None:
|
if target is None:
|
||||||
target = adapted(self.context.target)
|
target = adapted(self.context.target)
|
||||||
|
#self.viewAnnotations['target'] = target # TODO: has to be tested!
|
||||||
return target
|
return target
|
||||||
|
|
Loading…
Add table
Reference in a new issue