I've tried the method described at https://groups.drupal.org/node/240678#comment-782543 , but it is not exactly what I need. So i changed it a little bit :
Create a ruleset
Name it "Unpublish Content"
In the Settings/Variables:
- Data type = "Node"
- Label = "node"
- Machine name = "node"
- Save
... next screen...Add rule
- Name = "Unpublish Content Rule"
Save
Conditions (1):
- Content is published
- Data selector = node
- Save
Conditions (2):
- Content is of type = node
- Value = your-content type
- Save
Actions:
- Unpublish content
- Data selector = node
- Save
Create a rule
using
/admin/config/workflow/rules
Name = "Unpublish Rule"
- React on event = After saving new content
Save
Conditions:
- Content is of type
- Data selector = node
- Value = your-content-type
- Save
Actions:
- Schedule component evaluation
- Component Value = Unpublish Content
- Data selector = site:current-date <-- "This is what I changed, I want the node to be unpublished 50 days after it's creation."
- Identifier value = unpublish [node:nid] <-- removed this.
- node Data selector = node
- Save
But I don't have date field.
I have tried many methods but nothing seems to work, I don't want to use other modules like Auto Expire.
Any suggestions to get this to work?