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 frustration

September 02, 2011 5:07pm

Subscribe [2]
  • #1 / Sep 02, 2011 5:07pm

    liftalee

    86 posts

    Hello, I’m trying to build search functionality and I can’t seem to get a grip of how to make that the search results show on different pages.

    Items are viewed on many different pages using different weblogs and statuses, so that eliminates {auto_path} option. I haven’t even set an autopath because it seems pointless to me given the preceeding statement.

    I tried using the code

    {exp:search:search_results}
        <h4 class="search-head">{if page_url != ''}
    <a href="http://{page_url}">{title}</a>
    {if:else}
    <a href="http://{auto_path}">{title}</a>
    {/if}     
    </h4>

    Can I please get some help on how to structure the conditionals to receive the result I’m seeking.

    Everything seem to show up on the home page. I would really appreciate some help with this one. Lately very rarely do I get a response from the Forum anymore, but I really need some help on this one.

    I’m using version 1.6.8.

  • #2 / Sep 09, 2011 4:49pm

    Derek Hogue

    317 posts

    Just came across this when searching on a separate issue ... the fact this is posted in EE 1.x Core SUpport is likely why no one has responded.

    {auto_path} and {id_auto_path} both use the template_group/template path from each channel/weblog’s “Search Results URL” setting.

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

ExpressionEngine News!

#eecms, #events, #releases