Multiple drop-down boxes for 1 category
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-hie...) -- Ámon Tamás http://amon.hu
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-hie...)
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
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@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-hie...)
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-----
"Jeremy Epstein" wrote:
See the instructions on how to use the category module with activeselect:
Well, the info is pretty sparse, and that very page has user questions pending since August, 2006. (The last post, in fact, was in August.) It would be a good idea, I think, to either remove those user posts at your site or to reply to them. As it is, from reading the material at the URL you provided, it looks like this thing is just floating dead in the water. The 'activeselect' via AJAX (as opposed to plain old-fashioned Ecma script) is pretty cool, but there seem to be some conflict issues to work out for 4.7. (Based on user posts at the above site, that is.) Are these things worked out? Curious. -- inkfree
participants (4)
-
inkfree press -
Jeremy Epstein -
Mohammed Sameer -
Ámon Tamás