How to limit a keyword search to one album?

swamip

Joined: 2009-07-19
Posts: 5
Posted: Fri, 2009-09-18 12:19

Is there some way to limit a keyword search to one album? Is there some way to limit the keyword block to show only one album? At present all albums get searched and the keyword block shows the keywords of all albums.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-09-18 15:47

Nothing I've seen. I'd think you'd need to hack both the keywords and search plugins to make that function.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
swamip

Joined: 2009-07-19
Posts: 5
Posted: Sat, 2009-09-19 07:16

Is it possible to have multiple galleries (instead of multiple albums) with links to each one on the "main" gallery page? That would solve the keyword problem. If yes, how?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-09-19 14:21

Not how you describe.

There is a setup called "multi-site" but that's for having multiple, totally separate installs of G2 sharing the majority of the same codebase. You could possibly do that and create a theme just for your "main" gallery to edit your template files to point to the other galleries. But one gallery couldn't ever search them all.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
swamip

Joined: 2009-07-19
Posts: 5
Posted: Sat, 2009-09-19 16:16

Suppose I make 3 multisites that each contain 1 unique catalog. How could I make them accessible from within the main gallery, i.e. can links be created on the main page? If so, how? Of course, I understand that I wouldn't be able to search all the catalogs at once.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sat, 2009-09-19 17:52

For each site set a default albumId and breadcrumb root in config.php
$gallery->setConfig('defaultAlbumId', 1400); // set the default home album
$gallery->setConfig('breadcrumbRootId', 1400); // set the default breadcrumb root

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2