Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49206

How to use a field on a view as an argument of rule set? Using VBO

$
0
0

Hello,
I have "crawled" the web for a day and still lack of knowledge. Please help me to find the right direction.

This question is about Rules, Flag and VBO.

I have some content in the site that users can apply for ownership. I use Flag module to allow them to "apply" by flagging a node. I have set some triggered rules to send notification, etc. That all works fine.
Now, I need an admin panel to approve these "ownership requests.
I created a view with 2 fields.
- Node Title
- User who flagged that node.

Them I created 2 rule sets "approve" and "reject" using node and user as (only) 2 objects.

In the actual admin page, I need to skip arguments page so as a workaround, I created (core) actions saying "approve" and "reject" and then used those rule sets as actual action.
Then, these actions are available in the view and upon clicking buttons, I get php errors(but no argument-input page. What I needed).

I watched many screencasts(Johan's video series is great but I can't understand the arguments stuff) and some text documents without any luck.

So here is my question.
How can I use Flelds in the view as arguments? If I could simply type some tokens, that would be really great. Then VBO will can be run with zero coding!

As I'm running an action(I mean core actions module), please advice me how to give each field's node and user objects to rules set "remotely".
Thank a lot.
Hope someone will save my life!


Viewing all articles
Browse latest Browse all 49206

Trending Articles