How to trigger a Rules action based on which content pane of a panel is used? I have a page with a path like www.example.com/newsroom. On this page nodes are displayed with help of 2 different views:


View 1 : contains voted nodes by user.
View 2 : contains not voted nodes by user.


The 2 views are content panes and www.example.com/newsroom is a panel page. So there is no difference in the path of both views, and the user can see both views together.

I am using the Rules module to perform some action when vote is cast on any of node. And using Rules one can check the path from where a user performs an action on a node, simply by using the token [site:current-page:url]. But  in my case that is www.example.com/newsroom (no matter where the vote is related to).

Is there any way that I can differentiate if a node on that page is voted from via View 1 or View 2? As [site:current-page:url] returns path www.example.com/newsroom ... Based on which view it is, I want Rules to perform different actions. So how to check in Rules if the node being voted on is from View 1 or View 2?

I do have different classes of both views, but I'm not sure how to check those with Rules.

Any suggestions?
Have a look at the Rules panes module. Some details about it (from its project page):

Rules Panes allow embedding Rules components as content panes in Panels (or so).
By default any parameters for the component are entered manually by the end user, but they can also be pre-populated with CTools contexts on the page (which will also hide the form input).

So if you can find a way to transform your &quot;... rules to perform some action ...&quot; in a Rules component, you should be good to go.
Some pointers to some more docu/demos about it (also mentioned on its project page):

Videos introducing this module.
Presentation from DrupalCamp Stockholm 2013.
Video about Rules panes.