![]() |
|
how to acess to a specific image object ? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: how to acess to a specific image object ? (/thread-9451.html) |
how to acess to a specific image object ? - vincent3569 - 2012-01-06 hi I wish to acess to the image object of a specific image. How can I do that with the different existing functions ? Thanks for your help. how to acess to a specific image object ? - acrylian - 2012-01-06 You have to create the object to do so if it is not the current image you wish to use. You find a tutorial about the object model on our user guide. how to acess to a specific image object ? - sbillard - 2012-01-07 More specifically, first you will have to create an album object to the album the image resides in, then using that object, create an image object. If you want that image to behave like the "current" image, then there is a function to do so. how to acess to a specific image object ? - vincent3569 - 2012-01-07 thanks for your help I do like that : ` ` Maybe, it would be a good idea to have a function which allow to directly access to the image object of a specific image. how to acess to a specific image object ? - vincent3569 - 2012-01-07 btw, there is a mistake on http://www.zenphoto.org/news/zenphotos-object-model-framework. in
there is a missing "/" and it should be :
how to acess to a specific image object ? - acrylian - 2012-01-07
how to acess to a specific image object ? - sbillard - 2012-01-07
how to acess to a specific image object ? - vincent3569 - 2012-01-07 with my tests, without the slash, I can't access to the picture : I will have a look on the function above (tanks for your advise) how to acess to a specific image object ? - sbillard - 2012-01-07 Check your debug log to see what it has reported. There should be some indicator of why the image/object instantiation failed. how to acess to a specific image object ? - vincent3569 - 2012-01-07 @acrylian 1- if I write : ` Quote:{Sat, 07 Jan 2012 20:55:48 GMT} Zenphoto v1.4.1.5[8326] 3- you are right, the slash at the begenning is not required (I don't know where my mistake was) how to acess to a specific image object ? - acrylian - 2012-01-08
@sbillard: We might reconsider the recent change ignoring the "$gallery" parameter. Maybe just a check if the global $_zp_gallery is set would be the way to allow both ways. (or maybe we just add the global to the codeblock, which they probably don't have being Zenpage functions).
|