why can i not hide the free tagging vocabs?? is there any other mods that can do that?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Cohen’s picture

Priority: Critical » Normal

When I first wrote the module, the free tags had an entirely different data structure in the taxonomy module. That was Drupal 4.6 or 4.7. I don't know how much its changed in the meantime. It might be possible to support them. I invite you to submit a patch.

chasz’s picture

omg LOL am a noob with 2 week drupal experience :D

AlexisWilke’s picture

Dave,

There is a patch to do that: hide the free tagging vocabs in the list when editing the main form. 8-)

That way you do not have to add that in your message. Note that won't prevent someone from removing the "Tags", go to your module, assign the vocab, then go back and re-check the "Tags" checkbox.

Whether it would work with the free tagging, not too sure.

Thank you.
Alexis

AlexisWilke’s picture

Status: Active » Needs review
FileSize
390 bytes

Some day, I'll attach the patch first time in! 8-)

brunodbo’s picture

Version: 6.x-1.2 » 6.x-1.3
Status: Needs review » Needs work
FileSize
1.22 KB

Seems that free tags are now structured in the same way as 'non-free' terms, so free tags are in fact supported (they work in tac_lite v6.x-1.3). @Dave Cohen: can you confirm?

If this is the case, we could even take out the is_numeric() check in _tac_lite_get_terms() (line 367). Attached patch does that, and removes some references to free tags not being supported. There may be other checks in place to see if a term is a tag or not; they could be removed as well?

brunodbo’s picture

Title: Why cant control the free tagging Vocabularies? » Support free tagging vocabularies
AlexisWilke’s picture

Status: Needs review » Needs work

Hmmm... free tags are saved in an array named 'tags' and those are strings such as "a", "b", "c". So I don't think that will work for free tagging.

brunodbo’s picture

I have a free tagging vocabulary set up here, that works the same way as a non-free vocabulary: I can assign a tac_lite scheme to it, and I can give individual users access to terms within the free tagging vocabulary.

brunodbo’s picture

Seems that free tags are now structured in the same way as 'non-free' terms

I meant to say: are saved in the db the same way ..

AlexisWilke’s picture

Bruno,

Ah! Yeah. In the DB it is the same. I see what you mean now. 8-)

Thank you.
Alexis

Dave Cohen’s picture

Status: Needs work » Needs review

I'm on vacation till mid-october. It would be nice to support free tagging vocabs. So if this works I'll commit it, when I have a chance. Thanks for submitting the patch.

joelstein’s picture

I haven't tested the patch, but you'll want to make sure that it doesn't force you to rebuild after every node edit, as we found out in this issue.

I can't really see any good reason to support free tagging, though, since you have to manually map the terms in your vocabulary to your roles anyway.

Status: Needs work » Needs review
Dave Cohen’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Agreed free tagging is nice to have, but not high priority. Closing old thread.