We are thinking about a use case where each group is provisioned with it's og_vocab vocabulary on the group creation and deleted when the group is deleted to make sure that the group vocabulary does not end up next to site wide vocabs.

Would you be willing to include this feature into the og_vocab module if we would implement this as og_vocab module configuration option?

Cheers,

Comments

moshe weitzman’s picture

Yes, I am very interested in this feature. It probably does belong in OG Vocab itself. I started to implement this once but got sidetracked. I was toying with a model where an admin sets up a model vocab with terms and then that one gets copied to new groups.

darren.ferguson’s picture

StatusFileSize
new3.74 KB

Miglius, Moshe, per the information above please review this patch against the d6 head for the og_vocab module to implement this functionality.

Respectfully,
Darren Ferguson

darren.ferguson’s picture

StatusFileSize
new6.46 KB

Sorry, forgot to add the og_vocab.admin.inc file, here it is attached to this posting.

geodaniel’s picture

Version: master » 6.x-1.x-dev
Status: Active » Needs review
moshe weitzman’s picture

Status: Needs review » Needs work

1. This patch does not allow for terms to have any hierarchy. I'd like to support that. Thats why I was working towards having admin setup a model vocab that gets cloned as needed. If that is too complex, perhaps we ask admin to fill in a textarea and use dashes to signify depth/hierarchy. Like so:

Food
-- Dairy
---- Milk
---- Cheese
-- Meat
---- Chicken
---- Pork

2. if we use system_settings_form() like other settings pages, we don't need out own og_vocab_admin_settings_submit() function. am i missing something?

dan_aka_jack’s picture

Hello,

I too am very eager to see this functionality implemented. I have applied Darren Ferguson's patch and it works perfectly for me - it offers just the right amount of control without being too complex to administer. Having said that, Moshe's idea to allow terms to have a hierarchy would be very welcome.

Thanks for all the work everyone,
Jack

amitaibu’s picture

Maybe Rules module should do it. There is a discussion about integration with core taxonomy but og_vocab was mentioned as-well.

darren.ferguson’s picture

Will try and implement via Moshe's suggestion, will discuss with some people in our group who have more experience in this piece, so the implementation is correct and not done shabbily.

amitaibu’s picture

Status: Needs work » Fixed

I've added Rules integration - it depends on #350831: Add taxonomy vocab actions

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.