Search Isuue

donkasok - October 14, 2008 - 05:15

Hi,

In drupal advance search i am able to see all the vocabulary and terms in a single select area where multiple selection is allowed. I am having nearly 200 terms under 13 vocabulary. Its very difficult for someone to scroll down all those and do select. So i wish to split the taxonomy area on the basics of vocabulary as same as like the way the taxonomy is presented in create content page. But i am not sure where to edit in order to split it up.

eg:

I am getting the taxonomy

Voc1
term1
term2
Voc2
term1
term2
Voc3
term1
term2

All in a single selection area.I wan to split it up separately which means each vocabulary have its own selection area not all combined in one.

I found in node.module page, the below codes which is displaying the taxonomy in search page.

if ($taxonomy = module_invoke('taxonomy', 'form_all', 2))
{
$form['advanced']['tags'] = array(
'#type' => 'select',
'#title' => t('Use Ctrl for multiple selection'),
'#prefix' => '',
'#size' => 40,
'#suffix' => '',
'#options' => $taxonomy,
'#multiple' => TRUE,
'#collapsible'=>FALSE,

);
}

------- currently its call the taxonomy array. What should i do in order to split up the taxonomy on vocabulary basics. Please help me.

with regards,
Don

 
 

Drupal is a registered trademark of Dries Buytaert.