I have a few panel templates overriding default node themes.

I have a rule 'when content is viewed' with a condition 'content type is X' display message (to test, eventually it will perform an action).

The rule works fine if the node is not rendered through a panel layout. As soon as it is, the message no longer shows, and it seems the rule is either not initiated or the condition is not fulfilled.

I'd prefer to use panel templates, as opposed to hard coded ones, or block heavy pages.

Anyone encountered this before? Any help would be appreciated.

Comments

Anonymous’s picture

Anyone encounter this issue? It seems like it would have come up before...

When using a 'Node Template' panel, custom rules don't fire.

Letharion’s picture

Project: Panels » Rules
Version: 7.x-3.0-alpha3 » 6.x-1.4
Component: Panel pages » Provided Rules integration
Category: bug » support

I can indeed reproduce this problem.
@Rules maintainers: What exactly would Panels need to do to trigger the 'Content is going to be viewed'-event?

Anonymous’s picture

I'm running into this across multiple projects. Rules and Panels are so necessary and so powerful, it'd be great to get this bug out of the way.

Anonymous’s picture

A rule may be firing if I force the user to the 'node/$nid' URL. Global redirect will push it to the right URL and I believe the message was showing up, the only issue is through normal navigation, I can't really force the node/$nid, and I don't want people to have easy access to URL's (private messages and such).

The perfect scenario would the node alias would trigger the rule for it's aliased node, then load the panel template relating to it.

Anonymous’s picture

Version: 6.x-1.4 » 7.x-2.0-rc2
Priority: Normal » Major

I don't have time to dig into this issue myself, so any guidance would be great.

Updating the issue information a bit

pol’s picture

I'm also having the problem with Rules and Panels.

I'm also willing to provide a patch if someone could help me a bit.

Letharion’s picture

The Rules issue queue, like many others we have on d.o, are very high traffic, and have few people to help out.
For anyone who is interested in getting this issue, and others for Rules fixed, I encourage you to help out, by answering support requests, testing patches, and closing old un-relevant tickets. That will help the Rules maintainers focus on more important issues.

Letharion’s picture

Perhaps this issue #1118894: How to implement modules that use hook_nodeapi('view') in Panel Pages for nodes can be of help to someone that has this problem

hnln’s picture

http://drupal.org/project/rb provides this functionality but I'ds rather see it in rules itself.

samlj’s picture

Same problem here. Will check the solution proposed by HnLn

dasjo’s picture

dasjo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

mitchell’s picture

Component: Provided Rules integration » Rules Core

Updated component.