ZenphotoCMS Forum
returning the album folder URL - 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: returning the album folder URL (/thread-1707.html)



returning the album folder URL - arcanewinter - 2007-10-17

Not experienced with php, I've been poking around in the template functions guide, but to no avail. I want to include on the album.php template page a link to a .zip of the photos in that gallery (which I would upload separately). But I'd like to put that .zip in the same folder as the image files. Is there a function I can use to call the URL of the folder the pictures are in, rather than the display URL of the album?

i.e. http://mysite.com/zenphoto/albums/Album_Name/
instead of http://mysite.com/zenphoto/Album_Name/




returning the album folder URL - sbillard - 2007-10-17

$album->getAlbumFolder() . $album->getFolder() ."/";

where $album is an album object for the album.




returning the album folder URL - arcanewinter - 2007-10-17

Thanks. I'll try and figure that out.




returning the album folder URL - arcanewinter - 2007-10-17

All right, it turns out I have no idea what to do with that, but at least I know that would work.