![]() |
|
First image URL of a given Dynamic Album - 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: First image URL of a given Dynamic Album (/thread-5137.html) |
First image URL of a given Dynamic Album - bic - 2009-05-04 I'm looking for something similar to First image URL of a given Dynamic Album - acrylian - 2009-05-04 That function should also work with dynamic albums. You can also use the class object methods. First image URL of a given Dynamic Album - bic - 2009-05-04 I tryed it but it doesn't work with dynamic albums. The reason is that First image URL of a given Dynamic Album - acrylian - 2009-05-04 Try the class object methodes then. Create a new album object of the album you want, then get its images and create an image object for the first image. Then you can use the image class methodes to get the link. First image URL of a given Dynamic Album - bic - 2009-05-04 I think that you are true anyway, getFirstImageURL() should work also with dynamic albums. Then the URL in getFirstImageURL() function should be modified for dynamic albums to have a link to the right static album containing the image. May be I'm going beyond my knowlege and my possibilities, if so be patient with me please First image URL of a given Dynamic Album - sbillard - 2009-05-04 Your fix looks good, but I will check the code to be sure. I guess that this is just one of those things that was overlooked and never reported until now. First image URL of a given Dynamic Album - bic - 2009-05-04 I hope this helps, anyway my goal is far too hard for me. I was able to get the first image of a given dynamic album using the above fix and rewriting the URL in a custom function, stored in a plugin: getMyFirstImageURL(). But of course after that i fall in the static album's image page and i can't browse my dynamic album using the next button. First image URL of a given Dynamic Album - sbillard - 2009-05-04 I am not sure there is an easy way to make a link to an image and have it appear to be in a search/dynamic album. You would have to store the search params cookie first, but that will work only for one image/dynamic album. First image URL of a given Dynamic Album - bic - 2009-05-04 I found a very dirty way, but it means that it's possible somehow. First image URL of a given Dynamic Album - sbillard - 2009-05-04 You can try calling First image URL of a given Dynamic Album - bic - 2009-05-05 It didn't work, but made me found a solution. |