[development] Multiple drop-down boxes for 1 category
Jeremy Epstein
jazepstein at gmail.com
Thu Nov 2 12:44:35 UTC 2006
See the instructions on how to use the category module with activeselect:
http://category.greenash.net.au/node/120
When using these 2 modules in combination, you can achieve a series of
drill-down select boxes with zero custom programming.
Note: doing this requires you to set up what is called a "distant
parent hierarchy" with the category module (i.e. categories in one
container are the parents of categories in a different container -
something you can't do with terms and vocabularies in the taxonomy
module). More docs still pending for how to do this.
Cheers,
Jaza.
On 11/2/06, Mohammed Sameer <msameer at foolab.org> wrote:
> On Thu, Nov 02, 2006 at 01:32:25PM +0100, Ámon Tamás wrote:
> > Hello,
> >
> > I have a vocabulary with multiple (or single) hierarchy. For example this:
> > animals
> > -cows
> > -dogs
> > -rats
> > colors
> > -red
> > -purple
> > -white
> >
> > etc.
> >
> > If I add a node with this vocabulary, I like two drop-down boxes:
> > First with animals, colors, and when it is change, I like to change the
> > second drop-down box with the firsts sub-categories with ajax. With
> > which hook can I change it? Or there is a similar module?
> >
> > (This is similar this:
> > http://pear.php.net/manual/en/package.html.html-quickform.html-quickform-hierselect.php)
> >
> >
>
> For me, I guess I'll use hook_form_alter() and the activeselect module.
>
> --
> GNU/Linux registered user #224950
> Proud Egyptian GNU/Linux User Group <www.eglug.org> Member.
> Life powered by Debian, Homepage: www.foolab.org
> --
> Don't send me any attachment in Micro$oft (.DOC, .PPT) format please
> Read http://www.gnu.org/philosophy/no-word-attachments.html
> Preferable attachments: .PDF, .HTML, .TXT
> Thanx for adding this text to Your signature
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
>
> iD8DBQFFSeawy2aOKaP9DfcRAhqdAJ9ZYSuljulnIwHS1LIzZPJmvOCe9gCggWfT
> LBXDcqYyCxPi2nDJ+qAX9S0=
> =h+aw
> -----END PGP SIGNATURE-----
>
>
>
More information about the development
mailing list