[[+content_image]]
D
D
denism3002019-02-13 13:14:08
MODX
denism300, 2019-02-13 13:14:08

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>

Chunk galAlbumRowTpl
<li><a href=""></a></li>

I output like this:
[[!Gallery? 
    &album=`[[*galery_name]]` 
    &checkForRequestTagVar=`1` 
    &containerTpl=`galAlbumRowTpl` 
    &thumbWidth=`140` 
    &thumbHeight=`100` 
    &thumbTpl=`galItemThumb` 
    &imageWidth=`800` 
    &imageHeight=`800`
]]
[[+Gallery]]

and nothing is output. on page only
<li><a href="index.php?id=1&amp;galAlbum=%5B%5B%2Bid%5D%5D"></a></li>

This is my first site on MODx, I haven't figured it out yet.
where is the mistake?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Alexander Lunegov, 2019-02-13
@denism300

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 question

Ask a Question

731 491 924 answers to any question