Was this page helpful?

Custom in-place search form

    Table of contents
    1. 1. Sample
    2. 2. Source

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

    Sample

    Use this page to only search pages tagged with "kb:tutorial":


    Source

    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:"kb:tutorial"') 
    } }}
    Was this page helpful?
    Tag page
    Viewing 2 of 2 comments: view all
    How can you hack this script to make it a search by tag? (instead of typing "tag:searchterm" that is)
    Posted 16:22, 23 Dec 2008
    @SteveB

    Hi Steve - How can this script be modified to include a path, so it only searches a part of the wiki-site?

    /Andreas
    Posted 00:39, 6 Oct 2010
    Viewing 2 of 2 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by