Can I hide the link to open the slideshow ({g->theme include="itemLinks.tpl"}) if there are no images to show? Now you can click on the link, and you get the message "This album has no photos to show in a slideshow."
I tried to put {if !empty($SlideShow.itemList)} before the link in album.tpl, but this didn't work.
Thanks for any help.
Posts: 32509
there's already a feature request for that. good approach to disable it in the theme since we got the information needed there. a cleaner approach would be in modules/slideshow/module.inc .
Posts: 134
i'll try the "good approach", since my programming skills are too limited for the "cleaner approach".
any suggestions on what "if - statement" to use in the album.tpl file to test whether there are images in the album or only sub-albums?
thanx.
Posts: 32509
http://gallery.menalto.com/node/36743
Posts: 134
Thanks! That helped a lot. I'm almost there with my customization effort ...