Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 92 characters in body
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

I'd like to change the view mode of a node based on the role of a user and another flag in the node, and by using the Rules module. Since

Since a call to display the node by default is full content, I wrote a rule that on Content is ViewedContent is Viewed for that node type, it then checks the conditions and sets data value view-mode to teaser. However

However, even when the conditions are met properly the node still displays full text.

From this I am assuming that Content is Viewed is being executed after rendering or am I missing something in my approach?

I'd like to change the view mode of a node based on the role of a user and another flag in the node. Since a call to display the node by default is full content, I wrote a rule that on Content is Viewed for that node type it then checks the conditions and sets data value view-mode to teaser. However, even when the conditions are met properly the node still displays full text.

From this I am assuming that Content is Viewed is being executed after rendering or am I missing something in my approach?

I'd like to change the view mode of a node based on the role of a user and another flag in the node, and by using the Rules module.

Since a call to display the node by default is full content, I wrote a rule that on Content is Viewed for that node type, it then checks the conditions and sets data value view-mode to teaser.

However, even when the conditions are met properly the node still displays full text.

From this I am assuming that Content is Viewed is being executed after rendering or am I missing something in my approach?