Limit/filter albums shown

I would like to have one database support two galleries, by limiting/filtering the albums that each can show? The website calls for two pages, each with a unique set of albums on each. Is this possible using some sort of a $showCat command? Or will I have to install zenphoto in another directory as it seems from my forum searching?

Comments

  • This is possible. You will need to do two things.

    First, obviously, both galleries have to point their album folder to the same folder. You can do this in the zp-config.php file by making the appropriate changes to the album folder setup.

    Second you will need to filter out (or in) the albums which belong to the other (current) album. The next release of Zenphoto has a filter for album discovery. The included sample plugin `filter-file_searches` can provide the filter out capability or you can make your own filter using it as an example.
  • danm Member
    Do I Still need two installs of zp? Also, I don't see that plugin in my listing. Is there a url to download it?
  • Yes, you would need two installs for the scenerio described above.

    The plugin is not available until the 1.2.5 release (that is the `next` release I was refering to.) That release is in process as I type, so you can probably just wait for it. Otherwise you can download the nightly build which will be essentially the same as the 1.2.5 release.
  • danm Member
    Thanks. I will watch for it.
  • Sorry, I was ahead of myself. I of course meant the 1.2.4 release which has just been made.
Sign In or Register to comment.