don't show lightbox if image is large

This commit is contained in:
Helmut Merz 2013-04-23 08:27:52 +02:00
parent feb6ea1a06
commit 4a6d5abefc
2 changed files with 2 additions and 0 deletions

View file

@ -117,6 +117,7 @@
<tal:img condition="cell/img">
<a dojoType="dojox.image.Lightbox" group="mediasset"
i18n:attributes="title"
tal:omit-tag="python:part.imageSize in ('large',)"
tal:attributes="href cell/img/fullImageUrl;
title python: cell.img['description'] or cell.img['title']">
<img tal:condition="showImageLink|python:False"

View file

@ -158,4 +158,5 @@ class TargetLayoutInstance(NodeLayoutInstance):
target = self.viewAnnotations.get('target')
if target is None:
target = adapted(self.context.target)
#self.viewAnnotations['target'] = target # TODO: has to be tested!
return target