Adding advanced search in a page?

ajushi - November 27, 2008 - 09:14

Hi, I'd like to create a page where I can put:

- a search form with filters for taxonomy terms (like an advanced search)
- a list of articles in a certain taxonomy term at the bottom of the search (for example all articles for subject Math)

How do I do those?

Thanks in advance!

I forgot that I have to list

ajushi - November 27, 2008 - 09:16

I forgot that I have to list the articles in a table with the columns "title, contributor, rating" etc..

I hope someone could help. Thanks again.

hi i used this code

sumitshekhawat7331 - November 27, 2008 - 09:25

hi
In my site i want to display the content for a particular category like only for news
so i did.
1) create a new content type for news using cck
and named new content type name is "textitem"
2) create a taxonomy term name News

use this code if you want to search the content with in particular taxonomy category.

Suppose your category name is

<form action="?q=search/node" method="post" id="search-form" class="search-form">
<div class="form-item">
<label class="blok-label">Search</label>
<input type="text" class="input-text" value="" size="20" name="keys" />
<input type="submit" value="Search" name="op" title="Search" alt="Search" class="button"/>
<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[textitem]" id="edit-type-textitem" value="textitem" />
</div>
</form>

Hi sumitshekhawat7331! I was

ajushi - November 27, 2008 - 10:06

Hi sumitshekhawat7331!

I was kind of looking for an "advanced search form" type of interface with dropdown lists of taxonomy terms. Do you guys know how can I do that?

I think..

sumitshekhawat7331 - November 27, 2008 - 12:50

This is the default functionality of Drupal. Means Advanced Search Option.

You can set permission for anonymous user so that user can use Advance Search form.

Or can you give in detail exactly what do you want ?

Hi again, What I want is to

ajushi - November 28, 2008 - 01:24

Hi again,

What I want is to create a page with the search form block with advanced options that can filter taxonomy terms in a dropdown list. Also at the bottom of the form would be the listing of all the articles with pagination.

Thanks for taking time in answering this :)

Hi you can try this....

sumitshekhawat7331 - November 28, 2008 - 06:39

Hi you can try these modules may be it will solve your problem.

http://drupal.org/project/taxonomy_quick_find
http://drupal.org/project/faceted_search
http://drupal.org/project/taxonomySearch

Otherwise you have to write your own module.

 
 

Drupal is a registered trademark of Dries Buytaert.