![]() |
|
Limiting the number of search results - 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: Limiting the number of search results (/thread-6218.html) |
Limiting the number of search results - jackdaw - 2009-12-04 I created a dynamic album to show all the latest additions to the gallery. For now this means this album contains all 1500 images. How can I limit the number of this dynamic album to about fifty images? Is there a way to do this by changing something in: Limiting the number of search results - acrylian - 2009-12-04 I don't think it is possible to limit the results without extra coding. Limiting the number of search results - jackdaw - 2009-12-04 Then I hope this option will make it into the code , because at the moment I don't see any other way to show my latest additions to the gallery. Limiting the number of search results - acrylian - 2009-12-04 Free free to open a ticket then we might consider it sometime. You know about the image_album_statistics plugin? Of course not the same as an dynamic album... Limiting the number of search results - dogotaru - 2009-12-04 dear acrylian, I'm now exploring and still deciding giving it a try to zenphoto against another mature evolved gallery. I must say I like what I see here, but a friend of mine argues on some key features he isn't able to point to in zenphoto. Nice to notice the dynamic albums, this was one of his base arguments in his favor. Limiting the number of search results - sbillard - 2009-12-05 Why do you care about the suffix? You can change the title to whatever you want. (In fact, the title will not have the .alb in it by default.) Anyway, remember that Zenphoto is file system based, so it scans the file system for objects it knows how to handle. For images this is ones with the typical image suffix (.jpg, .png, etc.) for albums it is .alb. Limiting the number of search results - sbillard - 2009-12-05 jackdaw: You are free to make a theme that does not show all the images in an album (or search) if you wish. Seems a peculiar thing to do to me, though. Why have you set your search to return so many images in the first place? Limiting the number of search results - acrylian - 2009-12-05 Recommended read about how Zenphoto works regarding images and albums (the diagram especially) :http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/#22 To be specific. the ' .alb' is needed to tell the difference between a "real" album and a dynamic one. Limiting the number of search results - jackdaw - 2009-12-05 sbillard: You ask me 'Why have you set your search to return so many images in the first place?' As I said before, I'm trying to make a dynamic album that shows all my latest additions. The only way to do this, as far as I know, is to perform a search on the letters 'jpg'. Limiting the number of search results - acrylian - 2009-12-05 You could of course manually check the loop and stop it. But I don't think there is a parameter. Again, would be the lastest images function enough? You could even make a separate page using this. Of course that is not a real album and there is now pagination. Additionally you could use Zenpage and use the CombiNews mode with latest images. Also not really the same as an album but maybe alternatives. Limiting the number of search results - sbillard - 2009-12-05 I don't know. How do you determine which are the "latest additions"? If you search for filenames containging "jpg" you will, of course, get your whole gallery in no particular order. Limiting the number of search results - jackdaw - 2009-12-06 sbillard: I can change the order afterwards, after the dynamic album has been created through the search for 'jpg'. acrylian: I'm sorry, but I don't know how to use the printLatestImages function on a seperate/new page. I tried to make a 'latest.php' page and link to that directly, but that gives me all kind of php warnings. Could you give me some directions? Limiting the number of search results - acrylian - 2009-12-06 Using it is quite easy. Create a custom theme page named You can access the custom page by You could also use the function within a zenpage page's codeblock (the theme pages.php needs support for the codeblock). Limiting the number of search results - jackdaw - 2009-12-07 OK, thanks for the explanation This could work for me, except that the thumbs would link to the larger image inside the actual album. From there visitors can not use the next en previous images to browse through those latest additions because they are within 'another' album. Ik will try this anyhow. Thanks again. Limiting the number of search results - acrylian - 2009-12-07 You could use our object orientated framework to call a dynamic album directly on such a custom page and limit the display there. Limiting the number of search results - jackdaw - 2009-12-07 'object oriented framework'... Nice try but I'm just a very moderate 'coder', if any at all... I managed to get the looks of my albums using the printLatestImages function on a custom page. Works good for me: http://www.spoenk.nl/beeldend/page/latest. It now shows 24 images instead of the 1500 images before Limiting the number of search results - acrylian - 2009-12-07 Sorry..:-) But looks good. |