PHP include - gallery index and album view on one page

Hi

I am working on a design for my zenphoto installation. Is it possible to include album view along with the gallery index on the same page? I have attempted this however i get the error:

Fatal error: Call to a member function getImages() on a non-object in /home/cabinets/public_html/site/zp-core/template-functions.php on line 1751

I want to avoid resorting to iframes

Thanks!

Comments

  • It is certainly possible to do as you wish. But as you know, you must code it in your theme. You should review the themeing guide and the object model documents. Also, probably each of the function documents of the functions you are considering using.
  • Hi

    From what i have experimented with, if i take out <?php while (next_album()): ?> and its respective closing tag, my gallery index will just display a link to the current album being viewed. What i want to do is to remain consistent by still displaying links to other albums.
    This is really as far as my coding abilities go, so for time being i may instead just create a set of static links to act as my gallery index.
    What would be great is some pointers so i could start properly experimenting with a more long term solution with dynamic links. In the mean time i will scour the tutorials and guides and see what i can piece together.

    Thanks
  • If you just take out that loop, then NO album will be current. You will have to set up the one you want to be viewed as current. There is a function to do that. Something like makecurrent. Do a search on the functions to find the exact name and its parameters.

    I guess I am really not understanding what you want to accomplish. If it is just a list of album links rather than thumbnails, there is printAlbumMenu.
Sign In or Register to comment.