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.
Pages: 1
Hello,
I would like to count the number of images on a specific page on a separate page that does not contain an album.
I know the php code which allows me to count the number of images presented in this album but can't seem to call the function on a separate page:
function footer_top()
{
//echo 'style: '.$this->style.'<br/>';
//echo 'path: '.$this->path.'<br/>';
if ($this->hasAlbum())
{
echo '<span data-lang="fr"><p class="imagenum"><strong>'.$this->album->getNumberOfPhotos().' images dans la photothèque</strong></p></span><span data-lang="en"><p class="imagenum"><strong>'.$this->album->getNumberOfPhotos().' images in the stock photo collection</strong></p></span>';
}
return true;
}
Does anyone have a solution?
thank you in advance
Nico
Last edited by Nico3939 (2020-05-04 23:43:59)
Offline
In Backlight 2, I think not possible.
In Backlight 3, this would be a perfect use case for the new JSON API. See this conversation for a bit of a start:
http://community.theturninggate.net/vie … 417#p65417
Offline
Thank you very much Matthew
Offline
Pages: 1