Hi, I’m a complete newbie to Expression Engine 2, and I’m trying to use the Search function to scan images in galleries and then return a listing of the individual images. Instead, it’s returning the name of the Gallery that the possible match is in. Can someone help?
Search code (in my footer):
<!—Begin search—>
<div class=“span4”>
<div class=“clearfix”>
Search
{exp:search:simple_form channel="galleries" search_in="everywhere" result_page="pages/search" status="not closed" where="all" show_expired="yes" show_future_entries="yes"}
<input type=“text” name=“keywords” id=“keywords” value=”” size=“18” maxlength=“100” /
<input type=“submit” value=“search” >
{/exp:search:simple_form}
</div>
</div>
<!—End search—>
————————————————————————————————-
Search page code:
{embed="pages/_header"}
<div class=“span12 details”>
{exp:channel:entries}
{if no_results}{redirect="404"}{/if}
<h1 class=“p25”>View these galleries for possible matches to your search</h1>
<table border=“0” cellpadding=“6” cellspacing=“1” width=“100%”>
<tr>
<th>{lang:title}</th>
<th>{lang:excerpt}</th>
</tr>
{exp:search:search_results switch="resultRowOne|resultRowTwo"}
<tr class=”{switch}”>
<td width=“30%” valign=“top”>{title}</td>
<td width=“30%” valign=“top”>{excerpt}</td>
</tr>
{if count == total_results}
</table>
{/if}
{paginate}
Page {current_page} of {total_pages} pages {pagination_links}
{/paginate}
{/exp:search:search_results}
</div>
{embed="pages/_footer"}
———————————————————
I’m getting a little desperate so any help you can give would be appreciated, even if it’s to say I can’t do what I’m trying to do!