Member
Member
stront.w   2012-01-16, 21:40
#1

Hi,

i want to get all images from an album using the build in functions but i dont know how to do this.

can anyone help?

Member
Member
stront.w   2012-01-16, 23:17
#2

right now im using this code:

            " title="">
Member
Member
sbillard   2012-01-17, 02:21
#3

That works. It would also be possible to use the object model: $images = $album->getImages();

You did not really say, but it seems you are doing this outside of the Zenphoto theme context?

Member
Member
stront.w   2012-01-17, 10:26
#4

Yeah, im using it outside the theme context. is that a problem?

and how do i use the object model you described? can you give an example?

Administrator
Administrator
acrylian   2012-01-17, 10:51
#5

Yes, of course outside the theme context the functions are not available. See the user guide on "zenphoto as a plugin". There is also a tutorial for the object model (of course dependent on the theme context as well).

Member
Member
stront.w   2012-01-17, 16:34
#6

i have followed the user guide but i cant figure it out,
can you maybe write the code for me?
i know im on the right track but i'm struggeling with this problem for 2 days now and i cant figure it out.

Member
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.