Would be nice to have such an option :)

Comments

giorgio79’s picture

Perhaps exposing a rule for "After creation of og" would be a good way but then this request should go under og :)
Let me know what you think.

amitaibu’s picture

Status: Active » Fixed

You can already use Rules module to do it - og_vocab has rules integration.

Status: Fixed » Closed (fixed)

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

jvieille’s picture

Category: feature » support
Status: Closed (fixed) » Active

I tried to proceed with Rules, but I did not succeed:

Event: "after saving new content"
Condition : "Content is a group"
Action1: "Add a new vocabulary"
Action2: "Assign vocabulary to group"

The vocabulary is correctly created, but no way to get it assigned to the group.
I even tried to add a watchdog logging between these 2 actions to improve the chances for a correct scheduling

I would appreciate any help on this.
Thanks in advance

(I changed to "support request" as this seems an old issue not planned to being addressed)

jacoblane’s picture

jvielle try this:
Before adding the vocabulary to the group, try adding a new action to load it (i.e. the 'Load a vocabulary' action).
Load the vocab you just created. I entered <?php print $taxonomy_vocab->vid; ?> in the 'Select by vocabulary id' field to accomplish this.
Use this loaded vocabulary for the 'Assign vocabulary to group' action.

jvieille’s picture

Actually, I finally got it.
The problem was that I changed the "Variable taxonomy_vocab settings" default value "taxonomy_vocab" and "Variable taxonomy term settings" default value "taxonomy term" - the labels seems to be of importance though they appear to be modifiable.
Also, the label does not increment automatically, so creating multiple terms needs to change the label "taxonomy term" to "taxonomy term1", "taxonomy term2"....
So the rule is not to change the propose label, just add a numerical increment for each occurrence of the same action.

I would suggest to handle this label automatically instead of letting the user define a label which is not understood by the program. If it is too hard, just let the user assign a unique integer

joshmccormack’s picture

How would I make just 1 vocabulary created for each user and have it used for all groups made by the user (and only usable by that user)?