Answer the question
In order to leave comments, you need to log in
[[+content_image]]
Where is the error in the MODx gallery output?
Worth MODx Revo 2.7, put the package Gallery
Chunk galItemThumb
<div class="">
<a href="" rel="colorbox" title="Worth MODx Revo 2.7, put the package Gallery Chunk galItemThumb<div class=''> <a href='' rel='colorbox' title=''> <img class='[[+im">
<img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]" />
</a>
</div>
<li><a href=""></a></li>
[[!Gallery?
&album=`[[*galery_name]]`
&checkForRequestTagVar=`1`
&containerTpl=`galAlbumRowTpl`
&thumbWidth=`140`
&thumbHeight=`100`
&thumbTpl=`galItemThumb`
&imageWidth=`800`
&imageHeight=`800`
]]
[[+Gallery]]
<li><a href="index.php?id=1&galAlbum=%5B%5B%2Bid%5D%5D"></a></li>
Answer the question
In order to leave comments, you need to log in
Your galAlbumRowTpl chunk is a wrapper for displaying a gallery.
In it you output the code: , which means the following: "If the placeholder [[+showName]] is not empty, then display the placeholder [[+name]]". The problem is that the Gallery add-on does not have a [[+showName]] placeholder at all (it seems), and you can use the [[+name]] placeholder only in the galItemThumb chunk, where [[+name]] will display the image title. You can use placeholders in the galAlbumRowTpl chunk [[+thumbnails]] - will display image thumbnails (galItemThumb chunk code for each image), [[+album_name]] - album title and [[+album_description]] - album description.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question