In a static page, fancybox works correctly (the image open nice).
But when outputting images by Gallery (+fancybox), by clicking on the thumbnail instead of the image very nicely POPs up a window c code (text soderazhanie image file)

Moreover, other plugins (colorbox, lightbox) did refuse to work with a Gallery (without it all works)
версия MODX Revolution MODX Revolution 2.2.14-pl (traditional)
вызов галереи на странице:
[[Gallery?
&album=`[[*album_id]]`
&thumbHeight=`300`
&thumbWidth=`200`
&thumbZoomCrop=`1`
&imageFar=`1`
&linkToImage=`1`
&thumbTpl=`gal_vertTpl1`
]]
чанк gal_vertTpl1:
<div class="[[+cls]]">
<a class="fancybox" href="[[+linkToImage:if=`[[+linkToImage]]`:is=`1`:then=`[[+image_absolute]]`:else=`[[~[[*id]]?
&[[+imageGetParam]]=`[[+id]]`
&[[+albumRequestVar]]=`[[+album]]`
&[[+tagRequestVar]]=`[[+tag]]` ]]`]]
" title= "[[*pagetitle]], модель [[+name]]"
>
<img class="[[+imgCls]]" src="[[+thumbnail]]" title= "[[*pagetitle]], модель [[+name]]" alt="[[+name]]" />
</a>
<p>Модель [[+name]]</p>
</div>
пс: задача вроде проста - вывести на странице кликабельные превьюшки, да вот...
Спасибо)