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.

Simple search and status closed

October 06, 2011 4:19pm

Subscribe [4]
  • #1 / Oct 06, 2011 4:19pm

    GKenny

    78 posts

    Hi guys

    I have a problem probally very simple.

    The simple search form don’t return the closed entries even if the tag have the status=“open|closed”

    Did I have to put it somewhere else I already try in the result page tag.

    But it dosen’t work

    I can’t figure it out.

    Thank

  • #2 / Oct 07, 2011 1:21am

    John Henry Donovan

    12339 posts

    Hi GKenny,

    What version and build of EE are you using?
    Can you post the template code you are using for the search?

    Have you made turned on the search option for each of your custom fields in your Channel?

  • #3 / Oct 07, 2011 8:15am

    GKenny

    78 posts

    Hi John

    Thanks for your reply

    My version is : v2.2.2 - Build: date 20110801

    And here is the code for th e simple search :

    {embed="includes/header_doc" title="Gestion décès"}
     {embed="includes/header"}
      <div id="wrap_content">
       {embed="includes/nav_gestion"}
        <div id="content">
         {site_url}images/avis-deces.png
         <div class="separator"></div>
         <div id="gestionDeces">
          <h1>Gestion décès</h1>
          {embed="includes/if_logged_out"}
          {if logged_in}
          {exp:search:simple_form channel="avis_deces" result_page="gestion_deces/search_results" search_in="entries" status="open|closed" show_expired="yes" show_future_entries="yes"}
           <label for="keywords">Recherche : (Entrez le nom, le prénom de la personne souhaité ou le numéro de dossiers)</label>
    
           <input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100" /><input type="submit" value="Soumettre" class="submit" >
          {/exp:search:simple_form}
          <table border="0" cellspacing="2" cellpadding="2" width="400px">
           <tr>
            <th>Nom</th>
            <th>Prénom</th>
            <th>Numéro de dossier</th>
           </tr>
           {exp:channel:entries channel="avis_deces" limit="15" status="open|closed"}
           <tr>
            <td><a href="http://{permalink=">{nom_defunt}</a></td>
            <td>{prenom_defunt}</td>
            <td>{title}</td>
           </tr>
           {/exp:channel:entries}
          </table>
         {/if}
        </div>
       </div>
       
    
      </div>
    </div>
    {embed="includes/footer"}

    I try every option show_expired and future_entries just to be sure but no luck

    Thanks

  • #4 / Oct 07, 2011 12:46pm

    Mark Bowen

    12637 posts

    Hi GKenny,

    I just tried this out in an install and I too couldn’t get entries with a closed status to show in the search results. I created a new status and that worked fine but not the closed one.

    It seems that there is already a bug (sort of) related to this here - https://support.ellislab.com/bugs/detail/16593.

    I’ll see what colleagues have to say about this internally though and will get back to you with any information I find out.

    Thanks,

    Mark

  • #5 / Oct 07, 2011 1:10pm

    GKenny

    78 posts

    Hi mark thanks for your reply

    Ok then I will use a new status it a good work around.

    Thanks

  • #6 / Oct 09, 2011 12:34am

    Dan Decker

    7338 posts

    GKenny,

    I’m glad Mark’s suggestion got you on the right path. Please feel free to follow the progress of that bug report. If you have issues with the new sat uses, let us know via a new thread.

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases