By zanlus on
I am working on a site where I want to create a search box that looks at a limited number of node types and outputs to a custom URL.
I can create a search box that limits the node types as follows:
<form action="/search/library" method="post" id="search-form" class="search-form">
<input type="text" value="Keyword(s)" size="25" name="keys" id="keys" onFocus="if (this.value==this.defaultValue) this.value='';" onBlur="if (this.value=='') this.value=this.defaultValue;" /><br />
<input type="submit" value="Search" name="op" title="Search" alt="Search" />
<input type="hidden" value="<?php print drupal_get_token('search_form'); ?>" name="form_token" />
<input type="hidden" value="search_form" id="edit-search-form" name="form_id" />
<input type="hidden" name="type[library_book]" id="edit-type-library_book" value="library_book" />
<input type="hidden" name="type[library_multimedia]" id="edit-type-library_multimedia" value="library_multimedia" />
<input type="hidden" name="type[library_newspapers]" id="edit-type-library_newspapers" value="library_newspapers" />
<input type="hidden" name="type[library_online_resources]" id="edit-type-library_online_resources" value="library_online_resources" />
<input type="hidden" name="type[library_periodical]" id="edit-type-library_periodical" value="library_periodical" />
</form>
The problem is that it puts this output on the /search/library page, which I don't want. I want the output to go to /resources/search. Any suggestions are appreciated!
Comments
Use the path module to create
Use the path module to create an new alias?
London Drupal Developer
Needing more config options
I used that approach, but it just provides the same /search/library page. The problem is that I don't want the other search tabs to appear, nor do I want the additional search options to be available on this page. Any suggestions on achieving that level of configuration?