Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

In response to a suggestion that there should be a Super Search nodelet, I offer the following: a customizable mini-SuperSearch form for your Free Nodelet.

This is just an example. You can (and should) decide for yourself which fields you want to hard-code (using inputs of type hidden), and which fields you want to let yourself enter values for. (The remainder will get their defaults as defined by Super Search.)

<form method="post" action="?" enctype="application/x-www-form-urlencoded"> <input type="hidden" name="node" value="3989" /> Author:<input type="text" name="a" size=20 value="`author_title`"/><!- +-"--> <br/> Title:<input type="text" name="HIT" size=20 value="`title`"/><!--"--> Sep:<input type="text" name="HIS" size=2 value=" " /> <br/> Search only in/under `root_type_title`: <input name="`root_ss_type`" value="1" type="checkbox"> <br/> Replies: <input name="re" value="A" type="radio" /> All <input name="re" value="S" type="radio" checked="checked" /> Section <input name="re" value="N" type="radio" /> None <br/> <input type="submit" name="go" value="Search" /> </form>

This is pretty cool, because it uses Free Nodelet macros to determine the type of the current thread's root node (replies are simply type 'note', regardless of section) . 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... you know where to find it. :-)

For extra coolness, use the Fake a Nodelet technique to make your Mini Super Search look like a genuine nodelet!

A word spoken in Mind will reach its own level, in the objective world, by its own weight

In reply to Free Nodelet Hack: Mini Super Search by jdporter
in thread Super Search discouraged? by wojtyk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others about the Monastery: (6)
    As of 2014-09-02 07:56 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite cookbook is:










      Results (20 votes), past polls