Share » Forums » Developer » Specific folders search

Specific folders search

Specific folders search

Monday 07 April 2003 4:25:32 am - 1 reply

Author Message

Bård Farstad

Friday 11 April 2003 7:15:02 am

To create a search which searches only in the current, or any given node you can do something like this:

<form action="/content/search/" method="get">
<input type="text" name="SearchText" id="Search" value="" />
<input class="searchbutton" name="SearchButton" type="submit" value="Search" />
<input type="hidden" name="SubTreeArray[]" value="42" />
</form>

Where 42 is replaced by the ID of the node you want to search in. Note: this will search in this node and any subnode.

You can also search in several nodes by adding several hidden variables like:
<input type="hidden" name="SubTreeArray[]" value="42" />
<input type="hidden" name="SubTreeArray[]" value="43" />

--bård

Documentation: http://ez.no/doc

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu