Showing results based on a single record, info1 in images

2 posts by 2 authors in: Forums > CMS Builder
Last Post: August 8, 2013   (RSS)

By crazyfish - August 7, 2013

Greetings,

I have a photographer who has 5 galleries. Each has one record with multiple images.  I need to have a "search function" or URL or whatever - If she tags  info2 as Rwanda or rwanda, how can I search that field and show the results?

So far I set up a new page that checks all 5 galleries  ( probably an easier way, but we'll skip that for now ) and show results?  I can't seem to find a function that is appropriate.  There will never really be a search function, just a link.  In the future we may only add one or two other info2 "locations"

Tried this type of approach without success - I'm thinking its a multi-record function    results.php?info2=rwanda

Just testing with one gallery - "people" so you can see my thought process for the results

    <?php foreach ($peopleRecords as $record): ?>
    <?php foreach ($peopleRecord['images'] as $index => $upload): ?>
<div class="block"> <a href="<?php echo $upload['urlPath'] ?>" rel="prettyPhoto[gallery1]"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /></a><br/>
<br/>
 </div>
        <?php endforeach ?>
        <?php endforeach ?>

Thanks, always appreciate your help,