[Radiant] Problems with search_behavior

jlopez at hpcf.upr.edu jlopez at hpcf.upr.edu
Wed Nov 8 08:50:40 CST 2006


Loren,

Thanks for your help. I got it working fine as you've suggested in the
masthead of the site, and I've also tested in the sidebar.

Why are you using the html form action instead of the <r:search:form /> tag?

Jo.se.

> Jose,
>
> I implemented my search as a search box in the masthead of my site
> like this:
>
> <form action="/search-results" method="get" id="search_form"><input
> type="text" id="q" name="q" value="" size="15" /><input type="submit"
> value="Search" /></form>
>
> Where "/search-results" is the only page with the Search behavior
> selected and that page looks like this:
>
> <r:search:empty>
>    No match.
> </r:search:empty>
> <r:search:results>
>    <h2>Search Results:</h2>
>    <ul>
>      <r:search:results:each>
>        <li>
>          <r:link />
>        </li>
>      </r:search:results:each>
>    </ul>
> </r:search:results>
>
>
> You said below "Does this mean that gallery_behavior wasn't installed
> succesfully?"  Assuming you meant search_behavior, you might double
> check that you've selected the Search Behavior from the list. If you
> hadn't, that's the problem, if you had then I'll bump this to the
> next person... I've no idea.
>
> Hope that helps.
>
> Good luck,
>
> Loren
>
>
> On Nov 2, 2006, at 8:30 AM, jlopez at hpcf.upr.edu wrote:
>
>> Hi,
>>
>> I've just installed Oliver's search_behavior via svn. However, I don't
>> understand how to implement it. Can somebody please provide a clearer
>> example on how to do this. I've copied and pasted Oliver's example
>> in a
>> new page title search.
>>
>>  <r:search:form />
>>       <hr />
>>       <r:search:empty>
>>         No match.
>>       </r:search:empty>
>>       <r:search:results>
>>         Results:
>>         <ul>
>>           <r:search:results:each>
>>             <li>
>>               <r:link/> by <r:author/>
>>             </li>
>>           </r:search:results:each>
>>         </ul>
>>       </r:search:results>
>>
>> However, when I navigate to that url I get
>>
>> undefined tag `search’
>> undefined tag `search’
>> undefined tag `search’
>>
>> Does this mean that gallery_behavior wasn't installed succesfully?
>>
>> Jose.
>> _______________________________________________
>> Radiant mailing list
>> Post:   Radiant at lists.radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
> Loren Johnson
> loren at fn-group.com
>
>
>
> _______________________________________________
> Radiant mailing list
> Post:   Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant




More information about the Radiant mailing list