I have a taxonomy hierarchy like this:

Movies -> soundtrack

I'd like a new input field to popup when the example taxonomy term above is selected. It should be a freetagging input field or alternativly a dropdown of previously entered terms with an option to add a new movie.

Would this be possible porhaps in a future version?

Comments

rconstantine’s picture

So you're saying you don't like the current freetagging solution?

I'm really not clear on your description. Elaborate and try to use actual values for examples.

tuti’s picture

I'm sorry for being unclear. I'd like different autocomplete input fields to other vocabularies to popup depending on what taxonomy term is chosen first.

So if the user selects the "Movies" term in the "type" vocabulary I'd like an autocomplete input field to the Movies vocabulary to popup below.

But if the user selects the "Books" term in the "type" vocabulary I'd like an autocomplete input field to the "Books" vocabulary to popup below.

So the autcomplete input field changes depending on what the user selects before it.

Thanks!

rconstantine’s picture

Hmm, that's kind of funny. Why not just expand your entries into one vocabulary? Too large?

type->movie->movie1
\ \
\ -->movie2
\
-->book->book1
\
--book2
.
.
.
etc.

Anyway, I'm open to patches, but at this point I don't have time. Inter-vocab operations can get messy.

tuti’s picture

The problem is this:

Movies -> Soundtrack->Movie1

Movies -> Trailer->Movie1

I'd like the to have the one identical list of movies. That's why I went with having the movies in a seperate Vocabulary. But if there is a way to have the child terms of Movies->Soundtrack-> & Movies->Trailer-> to have the same list of movies that would work.

Cheers!

tuti’s picture

I've been researching a bit and it would work for me with this javascript. The Only thing I need is a rel="" property in the tag. Basically if you could make the module it copy the value="" property value to the rel="" it would work.

So for a radio button looking like this: I need it to be printed like this:

I've looked through the cck_taxonomy_ssu.module but my few php skills couldn't find where/how to modify it.

Cheers!

tuti’s picture

I didn't include the code tags around the code..

What I meant was, for a radio button button with this code:

<radio value="3">

I'd like it to output this:

<radio value="3" rel="3">

The "usable forms" javascript uses the rel="" to identify which radio button should show/hide which element (div, span, etc.)

Anyway it shouldn't be to complex to make it just copy the value="" property to a rel="". And I chose the value="" because it's unique to every radio button.

rconstantine’s picture

I see where you're going now.

As for radio buttons and this module, the project page and the README both mention that radio buttons are not working. However, does the Javascript take care of that issue for you as you only need radios for the movie title (Movie1 as you list it)?

If that's the case, I could probably figure out where to add the code you need, but I can't say it should end up in the official version. We'll see about that. Meanwhile, I'm very swamped right now. It may be a week or two before I have a chance to clear out my issue queues again. So if you can find a friend to poke around in the code and figure this out, that would be great. Otherwise, you'll have to wait. Sorry about that.

tuti’s picture

I appreciate every bit of help I get, tnx!

Ooh, I have implemented the radio buttons but not actually tested them. I liked the radio buttons for the simple fact that they wouldn't let you select a parent term i that term had child terms.

btw is fixing the radio buttons high on the priority list? That and the ability to add the rel="" copy of the value="" are my 2 requests for a future release. Maybe the rel="" addition could be an option for the module referring to the usable forms javascript in the settings? Just an idea.. Others may want the same functionality and so far, from my searching for several weeks, no solution is available for drupal today.

rconstantine’s picture

Title: Support for freetagging. » Support for different freetagging.
Status: Active » Closed (won't fix)

I'm not going to change how freetagging works right now. It would be to big of a change. The rel thing can be added yourself. Just keep a log for each site you deploy to that makes that change. Then when you upgrade this module, consult your change log and make the change again.