Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Hello,
Is there a way to ask the publisher how many photos are in an album or on the whole site?
I would like, using a hook with phplugin, to display the number of photos currently present in the visited album.
Is that possibel?
Thank you
Nico
Offline
Hi Nico, see the example in phplugins-pangolin-sample.php for copy_top. The specific code looks like this:
if ($this->hasAlbum()) {
echo 'Number of photos: '.$this->album->getNumberOfPhotos();
}
Offline
Humm thanks Ben, but I think it's PHPlugins functionality in Backlight 2. I don't think the Number of photos is accessible this way in Backlight 1.
No?
Nico
Offline
Humm thanks Ben, but I think it's PHPlugins functionality in Backlight 2. I don't think the Number of photos is accessible this way in Backlight 1.
No?
Nico
Correct, that's a Backlight 2 feature.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Thanks Daniel, so this feature don't exist in Backlight 1?
Offline
I just ran a quick test. This feature does not work in Backlight 1
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thank you very much Rod
Offline