John, where would this code go? Into the body part of the search  
page? Does all the other code that resides in the live and form page  
parts remain the same as in the instructions in Oliver's original  
announcement?

this is in reference to will's later question About getting the  
plugin from ruby lang, it it just a matter of:

cd vendor/plugins
svn co http://rubyidentity.org/ruby-lang.org/browser/ruby-lang.org/ 
trunk/www/vendor/plugins/search_behavior/

would this work, is there a better way?


> Ruby-Lang is using a modified version of Oliver Baltzer's search  
> behavior:
>
> http://rubyidentity.org/ruby-lang.org/browser/ruby-lang.org/trunk/ 
> www/vendor/plugins/search_behavior/
>
> Here's the code that makes it work:
>
> <r:search>
>    <r:if_query>
>      <r:empty>
>        <p>No matches.</p>
>      </r:empty>
>
>      <r:results:each>
>        <h3><r:link><r:excerpt><r:title/></r:excerpt></r:link></h3>
>        <p><r:excerpt radius="200"><r:content /></r:excerpt></p>
>      </r:results:each>
>
>      <hr class="hidden" />
>
>      <form id="search-again-form" action="<r:url />" method="get">
>        <p><r:input /> <input type="submit" value="Search Again" /></p>
>      </form>
>    </r:if_query>
>    <r:unless_query>
>      <form id="search-again-form" action="<r:url />" method="get">
>        <p><r:input /> <input type="submit" value="Search" /></p>
>      </form>
>    </r:unless_query>
> </r:search>
>
> --
> John Long
> http://wiseheartdesign.com

On Oct 25, 2006, at 8:00 AM, [EMAIL PROTECTED] wrote:

> Send Radiant mailing list submissions to
>       [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://lists.radiantcms.org/mailman/listinfo/radiant
> or, via email, send a message with subject or body 'help' to
>       [EMAIL PROTECTED]
>
> You can reach the person managing the list at
>       [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Radiant digest..."
>
>
> Today's Topics:
>
>    1. search_behavior and ruby-lang.org (Wes Bangerter)
>    2. Re: search_behavior and ruby-lang.org (John W. Long)
>    3. Custom Content Types (Justin Grammens)
>    4. Re: Custom Content Types (dror tirosh)
>    5. Re: Zebra striping using <r:children:each>? (Nathan Donaldson)
>    6. Re: search_behavior and ruby-lang.org (William Ross)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 24 Oct 2006 10:29:22 -0500
> From: "Wes Bangerter" <[EMAIL PROTECTED]>
> Subject: [Radiant] search_behavior and ruby-lang.org
> To: [email protected]
> Message-ID:
>       <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I've added search to a website I'm working on using the
> search_behavior plugin, and everything is working fine. I noticed on
> the ruby-lang.org site that the search there is a lot nicer though. It
> includes a bit of content from each page it finds with the search
> phrase highlighted. I think it's also excluding some pages (I couldn't
> get it to list the "page missing" page in its results). Is anyone here
> familiar with how that page on ruby-lang.org works? Is it still using
> search_behavior? Is it possible to get the search_behavior in the
> radiant subversion repository working like that?
>
> Thanks,
> Wes Bangerter
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 24 Oct 2006 12:59:14 -0400
> From: "John W. Long" <[EMAIL PROTECTED]>
> Subject: Re: [Radiant] search_behavior and ruby-lang.org
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Wes Bangerter wrote:
>> I've added search to a website I'm working on using the
>> search_behavior plugin, and everything is working fine. I noticed on
>> the ruby-lang.org site that the search there is a lot nicer  
>> though. It
>> includes a bit of content from each page it finds with the search
>> phrase highlighted. I think it's also excluding some pages (I  
>> couldn't
>> get it to list the "page missing" page in its results). Is anyone  
>> here
>> familiar with how that page on ruby-lang.org works? Is it still using
>> search_behavior? Is it possible to get the search_behavior in the
>> radiant subversion repository working like that?
>
> Ruby-Lang is using a modified version of Oliver Baltzer's search  
> behavior:
>
> http://rubyidentity.org/ruby-lang.org/browser/ruby-lang.org/trunk/ 
> www/vendor/plugins/search_behavior/
>
> Here's the code that makes it work:
>
> <r:search>
>    <r:if_query>
>      <r:empty>
>        <p>No matches.</p>
>      </r:empty>
>
>      <r:results:each>
>        <h3><r:link><r:excerpt><r:title/></r:excerpt></r:link></h3>
>        <p><r:excerpt radius="200"><r:content /></r:excerpt></p>
>      </r:results:each>
>
>      <hr class="hidden" />
>
>      <form id="search-again-form" action="<r:url />" method="get">
>        <p><r:input /> <input type="submit" value="Search Again" /></p>
>      </form>
>    </r:if_query>
>    <r:unless_query>
>      <form id="search-again-form" action="<r:url />" method="get">
>        <p><r:input /> <input type="submit" value="Search" /></p>
>      </form>
>    </r:unless_query>
> </r:search>
>
> --
> John Long
> http://wiseheartdesign.com
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 24 Oct 2006 17:48:39 -0700 (PDT)
> From: Justin Grammens <[EMAIL PROTECTED]>
> Subject: [Radiant] Custom Content Types
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hello, I am just curious if there are any plans to
> allow for custom data types in the core or if anyone
> might have an example of how they added this
> generically?
>
> http://lists.radiantcms.org/pipermail/radiant/2006-May/000280.html
>
> I'd like to do pretty much with custom fields that was
> discussed in the thread from the mailing list above,
> and it looks like there were some ideas put forth, but
> I don't see specifically a decision being made. I'm
> tempted to work on hacking something together for
> myself, but don't want to reinvent the wheel and
> curious how others may have solved this problem or if
> there is a plan to add this functionality.
>
> Thanks!
> Justin
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 24 Oct 2006 22:25:46 -0500
> From: "dror tirosh" <[EMAIL PROTECTED]>
> Subject: Re: [Radiant] Custom Content Types
> To: [email protected]
> Message-ID:
>       <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> The Page_part_types does exactly what you ask for and what most of  
> what is
> talked about in the link you sent.
> I am using it on 2 sites for a good few months now with no problems.
> you can find it on the TRAC site
>
> I think this is not the way radiant is going to at the moment and  
> this will
> probably wont work with future versions of radiant (still does with  
> the
> current), if someone knows on how to do it in implementations like the
> mental branch, I'ld to hear your ideas, and implement them
>
>
> On 10/24/06, Justin Grammens <[EMAIL PROTECTED]> wrote:
>>
>> Hello, I am just curious if there are any plans to
>> allow for custom data types in the core or if anyone
>> might have an example of how they added this
>> generically?
>>
>> http://lists.radiantcms.org/pipermail/radiant/2006-May/000280.html
>>
>> I'd like to do pretty much with custom fields that was
>> discussed in the thread from the mailing list above,
>> and it looks like there were some ideas put forth, but
>> I don't see specifically a decision being made. I'm
>> tempted to work on hacking something together for
>> myself, but don't want to reinvent the wheel and
>> curious how others may have solved this problem or if
>> there is a plan to add this functionality.
>>
>> Thanks!
>> Justin
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>> _______________________________________________
>> Radiant mailing list
>> Post:   [email protected]
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.radiantcms.org/pipermail/radiant/attachments/ 
> 20061025/828a59df/attachment-0001.htm
>
> ------------------------------
>
> Message: 5
> Date: Wed, 25 Oct 2006 05:32:55 +0200
> From: Nathan Donaldson <[EMAIL PROTECTED]>
> Subject: Re: [Radiant] Zebra striping using <r:children:each>?
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=utf-8
>
> Hi All,
>
> Just had time to get back to this.
>
> John: For the patch, would you like me to create a patch so that the
> plugin works, or shifting all of the functionality into  
> page_context.rb?
>
> Alexander and Sean: Sounds like an interesting idea, but maybe it's
> better to keep it simple. I certainly don't have a use for that  
> type of
> funftionality, but would be interested to hear if someone does.
>
> Regards
> Nathan
>
> -- 
> Posted via http://www.ruby-forum.com/.
>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 25 Oct 2006 12:53:28 +0100
> From: William Ross <[EMAIL PROTECTED]>
> Subject: Re: [Radiant] search_behavior and ruby-lang.org
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> On 24 Oct 2006, at 17:59, John W. Long wrote:
>
>> Wes Bangerter wrote:
>>> I've added search to a website I'm working on using the
>>> search_behavior plugin, and everything is working fine. I noticed on
>>> the ruby-lang.org site that the search there is a lot nicer
>>> though. It
>>> includes a bit of content from each page it finds with the search
>>> phrase highlighted. I think it's also excluding some pages (I
>>> couldn't
>>> get it to list the "page missing" page in its results). Is anyone
>>> here
>>> familiar with how that page on ruby-lang.org works? Is it still  
>>> using
>>> search_behavior? Is it possible to get the search_behavior in the
>>> radiant subversion repository working like that?
>>
>> Ruby-Lang is using a modified version of Oliver Baltzer's search
>> behavior:
>>
>> http://rubyidentity.org/ruby-lang.org/browser/ruby-lang.org/trunk/
>> www/vendor/plugins/search_behavior/
>
> the modifications look very useful. thanks for posting the link.
> I can browse the code but I can't get at the plugin, though: script/
> plugin throws a 500 error and SVN does this:
>
> $ svn co http://rubyidentity.org/ruby-lang.org/browser/ruby-lang.org/
> trunk/www/vendor/plugins/search_behavior/
> svn: PROPFIND request failed on '/ruby-lang.org/browser/ruby-lang.org/
> trunk/www/vendor/plugins/search_behavior'
> svn: PROPFIND of '/ruby-lang.org/browser/ruby-lang.org/trunk/www/
> vendor/plugins/search_behavior': 501 Unsupported method ('PROPFIND')
> (http://rubyidentity.org)
>
> is there a glitch or am I just doing something wrong?
>
> thanks,
>
> will
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
> End of Radiant Digest, Vol 7, Issue 40
> **************************************
>

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to