Forums / Setup & design / Search within specified folder using subtree_array
Mark Overduin
Friday 29 August 2003 2:59:09 am
Root |_My websites ..|_Site1 ..|_Site2..|_Site3
Right now, I use the following code to search:
- - - code - - - <form action={"/content/search/"|ezurl} method="get"> <input type="hidden" name="ClassID" value="2"> <input class="searchtext" type="text" size="10" name="SearchText" id="Search" value="" /> <input class="searchbutton" name="SearchButton" type="image" src={"search.gif"|ezimage} value="Search" /> </form>- - - - - - - - -
How do I search within a specified folder using subtree_array?
Thanx in advance.
-- Mark
Gunnstein Lye
Thursday 11 September 2003 8:54:34 am
Adding this should do the trick: <input type="hidden" name="SubTreeArray" value="42">where 42 is the node id of the root of the subtree you wish to search.
Friday 19 September 2003 6:30:23 am
Works great now. Thanx!!