Project:Rules
Version:6.x-1.x-dev
Component:Rules Engine
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

There is very old problem with Panels-Rules integration that you can't use Rules for Panel Pages: event "User is going to visit a page" is not suitable for output, and event "content is going to be viewed" doesn't work. It could be fixed with new "Panel Page is going to be viewed" event (with possible additional ctools-content-type-specific events).
Earl suggested hook for implementing this event in http://drupal.org/node/514824#comment-1832628

Comments

#1

+1 subscribing

#2

It can solve also my problem
http://drupal.org/node/591882

#3

Built a little module.

AttachmentSizeStatusTest resultOperations
ctools_rules.zip807 bytesIgnored: Check issue status.NoneNone

#4

@mani.atico
Can you please add a support also for "A user Panel Page is going to be viewed". To be more correct a "User being viewed" in case of visit overrided Panel Page user/%user

#5

@mani.atico

Excellent module it saved my day thanks!

#6

What about turning this into a panel/ctools rules integration?

#7

@fago Do you think we should make this an independent module or maybe integrate it with ctools or rules?

#8

this should go directly into ctools or be in an independent module.

#9

Subscribing...

#10

subscribing

#11

Component:Provided module integration» Rules Engine

I would vote for having some sort of CTools/Panels plugin that explicitly calls a rule set, that you can configure on the admin page for that panel.

There are at least two advantages for this:

1. You don't have to use five hooks on 'panel is going to be viewed' just because you want to have rules acting on five different panels. You would need no hooks at all, thereby speeding up the page load a little. (Right?)
2. You can use panel contexts as arguments going in to the rule set. You could thus shift most object loading into Panels, where the objects probably would be loaded for display or variant/visibility checks anyway. More cooperation between modules, less double work.

On top of this you could provide some functionality that people want to add to Panels, like setting breadcrumbs.

Sounds reasonable?

#12

+1 for patch #3 - Subscribing

#13

Hi. Is this module still being developed? Just asking since there has been no update since 2009..

If it is, when i try to add an action "Unflag a node", under User on whose behalf to unflag, the "acting user" argument is unavailable. Hope this could get fixed.

Thanks!

#14

#3 - Subscribing

#15

Hi guys created an update of the module in #3 to also pass the "acting user" as an argument.

Let me know if it does the trick for you?

Thanks,
D

AttachmentSizeStatusTest resultOperations
ctools_rules2.zip1.95 KBIgnored: Check issue status.NoneNone

#16

Oh man... I really, really want this.
+1 for #11

#17

subscribing

#18

Any plans for a Drupal 7 version of this module?

#19

@dixhuit: Wohoo! It is now possible to explicitly call rules from custom pages in Page manager. If installing the Rules Bonus Pack, you will get an extra checkbox allowing you to use the custom page as a Rules trigger/event.

#20

That's funny, I just found out about the Rules Bonus Pack and was gonna come back here and report the same thing. Splendid.

#21

Status:active» fixed

Closing this issue, on the basis of the functionality being available in Rules Bonus Pack (for D7…)

#22

Status:fixed» closed (fixed)

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

#23

Re-opening - the original issue was regarding D6. It's very nice that this functionality is now available in D7 via Rules Bonus Pack, but... a lot of us aren't using D7 yet... and RBP for D6 doesn't include it.

Does that module at #15 work? I'm a bit leery of using unofficial modules.

#24

Status:closed (fixed)» active

Changing status to active because the Rules Bonus Pack solution isn't available for D6.

#25

This is a good point – the issue was actually for D6 and not D7.

However, I must warn that I will probably not get the time to write this integration for Drupal 6. D7 is where the action is, and I'd much rather spend the time building out new features for D7.

Anyone is welcome to contribute patches, though. :-)

nobody click here