Support free tagging vocabularies

chasz - September 18, 2008 - 18:20
Project:Taxonomy Access Control Lite
Version:6.x-1.3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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

#1

Dave Cohen - September 18, 2008 - 18:47
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.

#2

chasz - September 18, 2008 - 18:49

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

#3

AlexisWilke - June 14, 2009 - 08:10

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

#4

AlexisWilke - June 14, 2009 - 08:11
Status:active» needs review

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

AttachmentSize
tac_lite-6.x-hide_tag_vocab.patch 390 bytes

#5

brunodbo - October 7, 2009 - 10:01
Version:6.x-1.2» 6.x-1.3
Status:needs review» needs work

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?

AttachmentSize
tac_lite_freetags.patch 1.22 KB

#6

brunodbo - October 7, 2009 - 10:05
Title:Why cant control the free tagging Vocabularies?» Support free tagging vocabularies

#7

AlexisWilke - October 8, 2009 - 20:11

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

#8

brunodbo - October 8, 2009 - 21:25

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.

#9

brunodbo - October 8, 2009 - 21:27

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 ..

#10

AlexisWilke - October 9, 2009 - 10:10

Bruno,

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

Thank you.
Alexis

#11

Dave Cohen - October 11, 2009 - 23:33
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.

 
 

Drupal is a registered trademark of Dries Buytaert.