Member
Member
tilzinger   2007-08-05, 16:41
#1

Hello,
I'm trying to use ZenPhoto to display a single album of images on a site. In the admin section I actually have 2 albums, active and archive. I'd like the index.php template page to display all the photos in the active album only (so I moved the code from album.php into index.php), and that would be the only album available to site visitors. I tried setting $_zp_current_album in the controller file to 'active', but that didn't work. I've tried a few other things too, but I keep getting the following error.

Fatal error: Call to a member function getImages() on a non-object in /scrapbook/zen/template-functions.php on line 408

Is there a way to set the default album?

Administrator
Administrator
acrylian   2007-08-06, 11:13
#2

Is zenphoto within a website or standalone? Take a look at this page:
www.christophclasen.de
It's in german but I think you'll see what I mean. The page uses zenphoto (in combination with Website Baker CMS) for the image galleries (for example "Kinderbuch" (="Children's Books") but links directly into the albums instead of using index.php.
Is that maybe what you want to do?

Member
Member
sbillard   2007-08-06, 18:23
#3

There is a function zp_load_album() in controller-functions.php which sets up the environment for an album. There is also zp_load_gallery() which may be needed to get the basics initialized.

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