Hello,

Since several hours, I tried to configure a rule for unpublish nodes on the cron task maintenance.
I have tested many many solutions from tutorials without success... I'm a little disapointed and I don't see how to configure my rule.

Here is my process:

My nodes have a date field (e.g: field_date_custom).
I want to unpublish nodes if the "date custom" is lower that today (now). I want to automatize this action with the cron task maintenance.

For this I have:

1- Create a Component of type "Rule set"
- Label : Unpublish nodes
- Parameters : Data type Node
1.1 - Add a rule with label "Unpublish action"
- Add a condition "Content is published"
- Add a condition "Content is of type" with my content type
- Add a condition "Entity has field" with my "custom date field"
- Add a action for unpublish nodes

2- Create a rule
- Label : Schedule - unpublish nodes
- Event : Cron maintenance tasks are performed
- Action : Schedule component evaluation and choose my component "Unpublish nodes"

But :

- In the Scheduled evaluation date field I don't see my "custom date field" and I get a "node" fieldset with no informations of my date field.

Can you help me to find a solution for configure this action when the cron is lauched ?

Thanks for your help.

Comments

kumkum29 created an issue. See original summary.

TR’s picture

Status: Active » Closed (duplicate)