Hi Alan.

Thank's for the explanation of functionallity of your module.
I've installed and configured your module like your notes. But now I don't know how to use the module.

Is it possible to have an example of code to insert into a form?

For example I must change this code

	$form['q3']['previous_motocycle'] = array(
		'#type' => 'select',
		'#title' => t('If YES what is the constructor?'),
		'#options' => array(
			'-' => t('Choose...'),
			'aprilia' => t('Aprilia'),
			'benelli' => t('Benelli'),
		),
		'#prefix' => '<div class="content">',
		'#suffix' => '<div class="clear"></div></div>',
	);

with a call to Taxiselect module.

Can you explain?
Thank's,
Alex.

Comments

alan d.’s picture

It is designed to be used with the node form. No coding is required!! BUT, it looks like you are requiring a free tagging option, which the module does not handle at the moment.

Usage example, step by step:

  1. To use your example, create a content type, for example "Bikes".
  2. Create a vocab. called "Makes n Models". Make sure that you associate the vocab with the content type "Bikes". Tag and Multiple select options must not be checked. The module is fairly specific to single select vocabs, with no free tagging.
  3. Now enter some terms:

    Yamaha
    Yamaha > FJR1300
    Yamaha > FJR1300A
    Yamaha > XV1900
    Yamaha > XV1900 > Roadliner 1900
    Yamaha > YZF-R1
    ...

    "Make" first, then add the "Model" with the "Make" as the parent term. When adding the "Series" (eg: the Roadliner), with the "Model" as the parent term, etc.

  4. Now edit the Taxiselect settings to activate the module on the vocabulary "Makes n Models" and the content type "Bikes".

When editing a content item of type "Bike", the widget will be active.

Have a play and see if it meets your needs.

alan d.’s picture

Status: Active » Closed (works as designed)

Closing. I may look at making this more generic, but not in the near future.