![]() |
|
Direct access to slide show. - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Direct access to slide show. (/thread-13213.html) |
Direct access to slide show. - ctdlg - 2019-03-17 Hello, Slide show link does work from albums. If I try to add a Slide show button inside a page, it does not work. Is there a way to access a Slide show without first entering it's album ? For example, a link like this one : /index.php?p=slideshow&album=Demo%2FPhotos.alb is only working if used within the Photos.alb album. The code used on my page to display the button is : [code] <?php @call_user_func('printSlideShowLink'); ?> [/code] Thanks in advance. Direct access to slide show. - acrylian - 2019-03-17 Yes, it is not possible to directly access the standard slideshow page as that is dependend on the album context. You can use the `printSlideShow()` function directly by setting the appropiate parameters: https://docs.zenphoto.org/function-printSlideShow.html If you mean with "page" a Zenpage page you can alternatively use the content macro to directly embed a slideshow: `[SLIDESHOW <albumname> <true/false for control]` Direct access to slide show. - ctdlg - 2019-03-18 Thanks acrylian. Yes, I meant "a Zenpage". [SLIDESHOW <albumname> <true/false for control] is ok inside a Zenpage. Iv'e used a third solution : duplicate my theme, set thumbnails to 0 removed next and previous buttons in album.php. I fill the description to fill my "page" I apply this theme to a gallery that has to be like a page, and the button to start the slide show works. Easy. Direct access to slide show. - acrylian - 2019-03-18 So you actually just wanted to use the slideshow instead of the thumbs and single image page? Then a better and much more streamlined solution would actually be to use the multiple_layouts plugin and create a special album.php page layout with those changes, call `printSlideshow()` directly there and assign that to the albums in question. Direct access to slide show. - ctdlg - 2019-03-23 Yes, this is what I want for some pages. I reply with some delay - sorry, I was out ! I will give a try to your last proposal. Direct access to slide show. - ctdlg - 2019-03-24 Your multiple_layouts plugin is a great plugin : easy to use, powerful ... Thanks again. |