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

CommentFileSizeAuthor
#15 ctools_rules2.zip1.95 KBDonaldd
#3 ctools_rules.zip807 bytesmani.atico

Comments

servantleader’s picture

+1 subscribing

dima700’s picture

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

mani.atico’s picture

StatusFileSize
new807 bytes

Built a little module.

dima700’s picture

@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

slashwalk’s picture

@mani.atico

Excellent module it saved my day thanks!

fago’s picture

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

mani.atico’s picture

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

fago’s picture

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

BenK’s picture

Subscribing...

rburgundy’s picture

subscribing

itangalo’s picture

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?

christiaan_’s picture

+1 for patch #3 - Subscribing

fatcheeks’s picture

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!

grasmash’s picture

#3 - Subscribing

Donaldd’s picture

StatusFileSize
new1.95 KB

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

Shadlington’s picture

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

kevin.mcnamee@mailbox.org’s picture

subscribing

dddbbb’s picture

Any plans for a Drupal 7 version of this module?

itangalo’s picture

@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.

dddbbb’s picture

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

itangalo’s picture

Status: Active » Fixed

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

Status: Fixed » Closed (fixed)

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

reallyordinary’s picture

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.

reallyordinary’s picture

Status: Closed (fixed) » Active

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

itangalo’s picture

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. :-)

mitchell’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev
Status: Active » Closed (fixed)

If this is still required, then please open a new issue in Rules Bonus Pack to backport Page Manager integration.