The simpler media website CMS
Hello,
I try to exclude keyboard navigation from a specific album using keyboardnav-extended.php extension.
I did a copy of my album.php (themes folder) and named it albumnokeybnav.php.
I assigned my album to this template.
Line 107, keyboardnav-extended.php file,
If I add
&& $_zp_gallery_page != 'album.php'
It's ok, but all albums are excluded
If I add
&& $_zp_gallery_page != 'albumnokeybnav.php'
does not exclude my album using this template : nav keys do work
I also tried adding
&& $albumname != 'my album'
nav keys do work
I also tried using
$_zp_current_album
without success.
What could be the right code is a mystery for me.
Comments
You need to use
$_zp_current_album->name
The name of your album is the folder name include parent albums:https://www.zenphoto.org/news/zenphotos-object-model-framework/
Hello,
Using $_zp_current_album->name (including parent albums) does work.
Thank you !