Wiki: DebugInfo: ExternalSearchPlugin


Detailed view of a page, which is probably more useful for debugging than anything else.

Querying backend directly for 'ExternalSearchPlugin'

get_pagedata('ExternalSearchPlugin')
 _cached_html 
transformedtext Object
(
    [_type] => pagetype_wikitext Object
        (
        )

    [_basepage] => ExternalSearchPlugin
    [_content] => Array
        (
            [0] => <div class="wikitext"><h3>Synopsis</h3>
<p class="tightenable">The 
            [1] => cached_wikilink Object
                (
                    [_page] => ExternalSearchPlugin
                )

            [2] =>  creates a form to query 
            [3] => cached_wikilink Object
                (
                    [_page] => InterWiki
                )

            [4] => s or other
internet sites.</p>
<h3>Typical Usage</h3>
<pre class="tightenable top">
&lt;?plugin ExternalSearch
         url=&quot;InterWiki or URL&quot;
         name=&quot;button text&quot;
?&gt;</pre>
<h3>Arguments</h3>
<dl><dt class="tightenable top bottom"><strong>url</strong></dt>
<dd class="tightenable top">Specify a wiki from the 
            [5] => cached_wikilink Object
                (
                    [_page] => InterWikiMap
                )

            [6] =>  or a url. Any text entered by
the user will be appended to the search url. The string placeholder
'<strong><tt>%s</tt></strong>' can be used to insert a search query into the url rather
than appending it.</dd>
<dt class="tightenable bottom"><strong>name</strong></dt>
<dd class="tightenable top">Text to display in the submit button. For 
            [7] => cached_wikilink Object
                (
                    [_page] => InterWiki
                )

            [8] =>  sites the
default is the wiki name, for other urls the default is the text
&quot;External Search&quot;.</dd>
<dt class="tightenable bottom"><strong>formsize</strong></dt>
<dd class="tightenable top">Specify the input area size. (default: 30 characters)</dd>
<dt class="tightenable bottom"><strong>debug</strong></dt>
<dd class="tightenable top">Don't really redirect to the external site, just print out the url
that would be redirected to.</dd>
</dl>
<h3>Examples</h3>
<p class="tightenable top">Perform a full-text search on 
            [9] => cached_wikilink Object
                (
                    [_page] => MeatBall
                )

            [10] =>  wiki:</p>

            [11] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin ExternalSearch
         url="http://www.usemod.com/cgi-bin/mb.pl?search="
         name="MeatBall Search"
?>
                    [_tightenable] => 0
                )

            [12] => <p class="tightenable bottom">Search the PHP web site for a function name:</p>

            [13] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin ExternalSearch url=php-lookup name="PHP Lookup" ?>
                    [_tightenable] => 1
                )

            [14] => <p class="tightenable bottom">Enter the name of a PHP function to view the documentation page:<br /></p>

            [15] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin ExternalSearch url=php-function ?>
                    [_tightenable] => 1
                )

            [16] => <p class="tightenable bottom">Enter any existing page name on 
            [17] => cached_wikilink Object
                (
                    [_page] => PhpWiki
                )

            [18] =>  to jump to that page:</p>

            [19] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin ExternalSearch url=PhpWiki ?>
                    [_tightenable] => 3
                )

            [20] => <hr />
<p class="tightenable top bottom">
            [21] => cached_wikilink Object
                (
                    [_page] => PhpWikiDocumentation
                )

            [22] =>  
            [23] => cached_wikilink Object
                (
                    [_page] => WikiPlugin
                )

            [24] => </p>
</div>

        )

)
 hits  787
 locked  yes
get_versiondata('ExternalSearchPlugin',1)
 %content  !! Synopsis The ExternalSearchPlugin cr ...
 author  The PhpWiki programming team
 author_id  The PhpWiki programming team
 is_minor_edit   
 markup  2
 mtime  1082385959
 pagetype  wikitext

Copyright © 2007 RobertMelton.com