Was this page helpful?

DekiCon Sample 4: Custom Search Form

    Table of contents
    No headers

    This page contains a customized search form that will only find pages with a pre-defined constraint.

    Use this page to only search pages tagged with "extensions":
    {{ dhtml.inputbox{value: __request.args.q, button: "Search", field: "q", publish: page.uri} }}
    
    {{ if(__request.args.q) { 
    	wiki.search(__request.args.q, _, _, "tag:extensions") 
    } }}
    

    Use this page to only search pages tagged with "extensions":




     

    Was this page helpful?
    Tag page
    Viewing 5 of 5 comments: view all
    Does this require 8.05.2.a? Just copied and pasted into my wiki and get an error: reference to undefined name 'dhtml'. The search control does not appear. I am running 8.05.2.
    Posted 17:46, 19 Jul 2008
    You need to add the dhtml extension. Search for "dhtml" and you'll find it.
    Posted 19:36, 19 Jul 2008
    Outstanding. Tyvm. Very useful.
    Posted 13:13, 20 Jul 2008
    this requires 8.05.2 right? does not work in 8.05.1
    returns weird errors and asks for ) and } after certain columns
    (yes i have enabled the dhml extension) edited 07:01, 14 Aug 2008
    Posted 07:01, 14 Aug 2008
    Correct, it requires 8.05.2 or later.
    Posted 07:45, 14 Aug 2008
    Viewing 5 of 5 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by