<?xml version="1.0" encoding="windows-1252"?>
<node id="616580" title="Free Nodelet Hack: Mini Super Search" created="2007-05-21 10:47:15" updated="2007-05-21 06:47:15">
<type id="11">
note</type>
<author id="170442">
jdporter</author>
<data>
<field name="doctext">
&lt;p&gt;
In response to a [id://616427|suggestion] that there should be a
[Super Search] [id://239623|nodelet], 
I offer the following: a customizable
mini-SuperSearch form for your 
[id://590089|Free Nodelet].
&lt;/p&gt;&lt;p&gt;
This is just an example.  You can (and should) decide for yourself which fields
you want to hard-code (using inputs of type &lt;tt&gt;hidden&lt;/tt&gt;), and 
which fields you want to let yourself enter values for. 
(The remainder will get their defaults as defined by [Super Search].)
&lt;/p&gt;

&lt;code&gt;
&lt;form method="post" action="?"
	enctype="application/x-www-form-urlencoded"&gt;
&lt;input type="hidden" name="node" value="3989" /&gt;
Author:&lt;input type="text" name="a" size=20 value="`author_title`"/&gt;&lt;!--"--&gt;
&lt;br/&gt;
Title:&lt;input type="text" name="HIT" size=20 value="`title`"/&gt;&lt;!--"--&gt;
Sep:&lt;input type="text" name="HIS" size=2 value=" " /&gt;
&lt;br/&gt;
Search only in/under `root_type_title`:
&lt;input name="`root_ss_type`" value="1" type="checkbox"&gt;
&lt;br/&gt;
Replies:
&lt;input name="re" value="A" type="radio" /&gt; All
&lt;input name="re" value="S" type="radio" checked="checked" /&gt; Section
&lt;input name="re" value="N" type="radio" /&gt; None
&lt;br/&gt;
&lt;input type="submit" name="go" value="Search" /&gt;
&lt;/form&gt;
&lt;/code&gt;
&lt;p&gt;
This is pretty cool, because it uses [id://590089|Free Nodelet macros]
to determine the type of the current thread's root node (replies are
simply type 'note', regardless of section) &lt;!-- and yes, this is not
entirely true either --&gt;. The mini Super Search form is pre-loaded
with that and other relevant values from the current node: the author
and the title.  You can delete/edit these values as you like before
clicking the submit button.  If you decide you need more flexibility
than this (or than you can hack in your Free Nodelet), then...
[Super Search|you know where to find it]. :-)
&lt;/p&gt;
&lt;p&gt;
For extra coolness, use the &lt;a href="#618521"&gt;Fake a Nodelet&lt;/a&gt; technique
to make your Mini Super Search look like a genuine nodelet!
&lt;/p&gt;


&lt;div class="pmsig"&gt;&lt;div class="pmsig-170442"&gt;
&lt;small&gt;&lt;i&gt;A word spoken in Mind will reach its own level, in the objective world, by its own wei[http://www.sacred-texts.com/eso/som/som19.htm|g]ht&lt;/i&gt;&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
615838</field>
<field name="parent_node">
616574</field>
</data>
</node>
