The simpler media website CMS
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 :
<?php
@call_user_func('printSlideShowLink');
?>
Thanks in advance.
Comments
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]
Thanks acrylian.
Yes, I meant "a Zenpage".
[SLIDESHOW <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.
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.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.
Your multiple_layouts plugin is a great plugin : easy to use, powerful ...
Thanks again.