ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

search function on Gallery - not returning individual images

September 05, 2013 11:37am

Subscribe [1]
  • #1 / Sep 05, 2013 11:37am

    samsailorcat

    1 posts

    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!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases