extras-evolution / EvoGallery

Модуль для создания фото галереи на сайте.
4 stars 6 forks source link

Empty wrapper if no images #16

Open sashabeep opened 8 years ago

sashabeep commented 8 years ago

Defaul call render wrapper even if no images attached to the document

[[EvoGallery? &display=images&itemTpl=gallery_item&tpl=gallery_tpl]]

How to disable rendering of gallery_tpl if document does not contain any images?

MrSwed commented 8 years ago

for new modifiers or phx, PHX included to evogallery but its a little old and without ifnotempty modifier

[+items:ifnotempty=`the are content of gallery_tpl with [+items+]`+]

if not work use that construction:

[+phx=`[+items+]`:ifnotempty=`the are content of gallery_tpl with [+items+]`+]

by the way, in default tpl only [+items+] and it not show if no images

sashabeep commented 8 years ago

Thanks for advice

Usually, just [+items+] is not enough for gallery block on the page. I just wrote another implementation using DocLister