Using activeselect with category
The activeselect module provides your Drupal site with a new kind of form element, called an 'activeselect'. An activeselect box is the same as a regular select box, except that it is linked to another 'target' element. The target can be either a regular select box, or another activeselect. When you select a new value in an activeselect, that value is instantly sent to the server (using AJAX), and the server instantly sends back a new set of options for the target, based on your selection.
The categoryi module is the first Drupal module to make use of the functionality provided by activeselect. In fact, activeselect was written specifically to improve the usability of the category module's graphical interface (although other modules can use it in the same way too).
Activeselect currently affects the following two interfaces when it is installed with category:
- On the add / edit category form, the containeri select box becomes an activeselect, and the parenti select box becomes its target. When you select a new container, the list of parents gets updated to reflect the available parents for a category in that container.
- On the add / edit [node type] form (where [node type] is any node type that can have categories assigned to it), some category select boxes become activeselects. The way it works is as follows: if container A is set as an allowed distant parenti by container B, and if both containers A and B have category select boxes on that form, then container A becomes an activeselect, and container B becomes its target. This is a much more complex setup, because there can be multiple activeselects on the one form; and, more importantly, because it is possible for one form element to be an activeselect, and to be the target of another activeselect. If an element is both an activeselect and a target, then this can trigger a cascade of AJAX events (which looks really cool, and which is even cooler).
Installing activeselect with category is easy: simply download activeselect, and enable it on your site. Category will immediately detect it, and your interfaces will suddenly be jazzed up with AJAX!
If you don't have activeselect, or if your browser (or your users' browsers) doesn't have adequate JavaScript support, don't fret: in this case, all activeselect-enabled elements in the category module will degrade gracefully to their less jazzy, but still usable, equivalents.
It is highly recommended that you install the activeselect module with the category module. The usability enhancements are significant, and your site's visitors will be awed and dumbstruck by what they can do with (what was previously) a simple select box.
activeselect not working
I installed the activeselect module and enabled it. But nothing happened. Should I do anything else?
AJAX auto-complete not working on freetagging containers
Hi Jeremy and others,
I am installing Category on two sites. It's been mostly positive so far. Thank you.
I wanted to ask if you have any suggestions for me.
I have one categoryi set up as a free tagging containeri. I used to see a nice grey circle in the category entry form for new content. But now I don't see it anymore, and auto-complete doesn't work.
Can you offer me any assistance? I am running 4.7. Here are the modules I've enabled:
activeselect
blog
book
category
category_bulkedit
category_display
category_legacy
category_menu
category_outliner
category_pathauto
category_transform
category_views
comment
contact
content Allows administrators to define new content types.
event
filter
forum
help
image
img_assist
location
masquerade
menu
node
nodereference
number
page
path
pathauto
profile
statistics
story
system
text
throttle
tinymce
user
views
views_ui
watchdog
weburl
Activeselect usage?
Can't seem to get this working - I followed the tutorial on drupal.org but when creating new content the first dropdown has no effect on the second which shows the full list of categories. What I'd like to do is just have a simple classifieds section with top level items like housing, for sale, etc. and secodary items like apartments and rooms for rent in housing, and autos and electronics in for sale. Any help on setting this up would be very greatly appreciated.
note - when I create the categories like apartments no matter what I choose for the conatiner I get the full list for the "Parent" drop down whereas I've read that the containeri selection should affect the parenti list.
example maybe???
either a bit more filler in your explanation or an example would go a long ways here.
I don't get what containeri B is in your example. What is the
"When you select a new value in an activeselect, that value is instantly sent to the server (using AJAX), and the server instantly sends back a new set of options for the target,"
but you only talk about 2 containers A and B - each would have a set of "options" i.e. safe to assume you mean categories? So what is the "new set"? Yes, obviously i am quite lost here... but i learn almost everything on Drupal by example...
are you suggesting possibly we have more containers than you suggest? perhaps:
A is distant parentii with categories x, y, z
x, y, and z each have containers as children J, K, L
and in turn each of J, K and L have a set of categories lets say jo, jp, jq, ko, kp, etc
now we have different sets.
so J, K and L all allow A as distant parent.
so when i pick x, y OR z in select list for A; i get a single container called ???? who knows what with the terms from the corresponding child container.
therefore when i pick in A:
x: i get jo, jp, jq
y: i get ko, kp, kq
etc....
this kinda makes sense to me except i am sure this is NOT correct.
but then your description doesn't really seem to make any sense as to what/where the "new set of options" comes from.
Time to start going through the code i guess... but any help greatly appreciated.
Peter Lindstrom
LiquidCMS - Content Management Solution Experts
yeaaaa baby.. here's the answer
ok, finally found the post that REALLY explains this...
check it out here: http://drupal.org/node/74747
cheers,
categories vs activeselect vs views
Is there a way to have activeselect enabled during views filtering using exposed filters? ActiveSelect works fine during node add and containeri add...but not during view filetering with exposed filters.
Is there an easy way to add that support?
Also, maybe I did this wrong...but can a target activeselect box be a multiple select instead of a single select dropdown box?
Thanks for your help