Closed (fixed)
Project:
Rules
Version:
6.x-1.x-dev
Component:
Provided Module Integrations
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2009 at 14:25 UTC
Updated:
26 May 2012 at 18:35 UTC
Jump to comment: Most recent file
Comments
Comment #1
amitaibuUse the event 'Content has been saved', so you'll have the node tokens.
Comment #2
giorgio79 commentedHi Amitaibu,
Thanks for replying. Yes I think I have all set, except the tokens do not appear somehow.
I added to the "content has been saved" a further criteria, namely content is a group.
Here is my exported rule, basically it creates a vocab for a group on group creation. Yet, if you try and import this yourself you wont see the node tokens for naming the taxonomy, when editing the "add new taxonomy" action.
Any ideas are appreciated.
(one needs og, og_vocab for this rule)
Comment #3
giorgio79 commentedI just tried this rule without the organic group action, meaning only the condition where "node is saved" and the action "add new taxonomy"
but the tokens are missing there as well.
Any suggestions are welcome.
Comment #4
amitaibuOk, from looking in te code there's no eval input defined for the add taxonomy - I'll roll a patch for that.
Comment #5
amitaibuAttached ptach adds token/ PHP eval support.
Comment #6
giorgio79 commentedThanks Amitaibu.
Works wonders.
Comment #7
giorgio79 commentedHoops, maybe I spoke too soon
The tokens appear fine, but now when I try to create now a new group, I get this:
Fatal error: Cannot use object of type stdClass as array in .../sites/all/modules/og_vocab/og_vocab.rules.inc on line 54
Here is the export of the rule with the token this time :)
Comment #8
amitaibuI think the error is from og_vocab -are you using latest version?
Comment #9
giorgio79 commentedThanks, good call. I had og_vocab rc1, but I installed the dev from May, and now it works fine.
I can create group with the rule created and taxonomy with the same name is assigned.
Much appreciated.
Cheers,
G
Comment #10
fagothanks, committed.
Comment #12
mitchell commentedUpdated component.