![]() |
|
Display albums using custom fields - 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: Display albums using custom fields (/thread-12712.html) |
Display albums using custom fields - kocho - 04-05-2015 Hey all, What I'd like to do is display albums based on that particular albums custom field information. I've successfully setup an album is if a field I specify has the same exact information as other albums with the same custom field exact information. For example if Wheel_Style is "Dark Red" it will display other albums with the same Wheel_Style. http://pastie.org/private/ryjrhukaoeu9irf9omrstw What I want to do now though is display multiple custom field information. So, lets say if Wheel_Width is another one of my fields, how do I get Wheel_Style and Wheel_Width to display? I'm not really sure what to do with the code above in order to get multiple fields to be recognised. I hope that's clear enough. Display albums using custom fields - acrylian - 04-05-2015 Looks actually correct gnerally. You can take a look at the related_items plugin how to start a search programmatically. You cannot search like "if field1 == something AND field2 == something else". You can only search generally for a value on all fields set to search on. But you could perform a 2nd search within the results to check another field. An alternative could also be to use the album objects and compare the field values directly. |