listas albums en image.php archivo? es posible?

I would like to list the last 5 albums to display pictures in the file image.php

Comments

  • Yes, but there is nothing standard to provide that function. You will have to make use of the object model. Retrieve the images from the album with `$imagelist = $album->getImages(0);` then `$last5 = array_slice($imagelist, -5);`
    You can then make an image object for each of the $last5 and display it.

    Please review the themeing guide and the object model for details.

    Also, it really would be more helpful if your posting topic was in English as this is the Lingua Franca of the forum. Maybe the person who could answer you question would not read the thread if he did not understand Spanish.
  • acrylian Administrator, Developer
    You can use the image_album_statstiics plugin function to get the albums but then as my collegue mentions you have to code a few things yourself.
  • Okay sbillard'll try what you mention then I can understand that traverse the array $ last5 to apply some kind of li and CSS. The other is whether a similar procedure can take me to get the description and title of each album ... thanks also for your contribution acrylian
  • Okay sbillard'll try what you mention then I can understand that traverse the array $ last5 to apply some kind of li and CSS. The other is whether a similar procedure can take me to get the description and title of each album ... thanks also for your contribution acrylian
  • acrylian Administrator, Developer
    So why do you post the same twice?

    Anyway if that was a question, please learn the basics of Zenphoto theming first and then look at the object model. Both have tutorials on the user guide, but you need some coding knowledge to understand.
  • According acrylian think post 2 times, sorry.
    Will review the tutorials and then ask the doubts I might be going on the road. Thanks again acrylian
Sign In or Register to comment.