We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1788
    • 1,103 Posts
    Есть вызов Gallery
    [[!GalleryAlbums? &toPlaceholder=`GalleryAlbums` &limit=`0` &albumCoverSort=`rank` &prominentOnly=`0` &rowTpl=`DemoGalAlbumRowTpl` &thumbWidth=`160` &thumbHeight=`120` &parent=`154`]]
    [[!Gallery? &checkForRequestTagVar=`1` &toPlaceholder=`Gallery` &useCss=`0` &containerTpl=`DemoGalleryAlbumTpl` &thumbWidth=`160` &thumbHeight=`120` &thumbTpl=`DemoGalItemThumb` &imageWidth=`800` &imageHeight=`800`]]
    [[!If? &subject=`[[+Gallery]]` &operator=`isempty` &then=`[[+GalleryAlbums]]` &else=`[[+Gallery]]`]]

    Изменил If на модификатор
    [[+Gallery:default=`GalleryAlbums`]]

    Все работает нормально.
    Загоняю для GalleryAlbums и Gallery параметры в "Наборы".
    [[!GalleryAlbums@LifeAlbum? &parent=`154`]]
    [[!Gallery@Life?]]
    [[+Gallery:default=`GalleryAlbums`]]

    В итоге слетает модификатор, на странице просто надпись GalleryAlbums
    А если вывести галерею, выводится все по умолчанию, прописанное в сниппетах.
    Вопрос в следующем. Где ошибка, или были какие либо изменения в последних версиях движка?
    [ed. note: antey last edited this post 11 years, 11 months ago.]