Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am having extreme difficulty configuring rules to publish content. Ideally, we would publish content on the date entered in the "post date" field.
The idea would be to have a triggered rule that fired on every cron to check for any content where content is NOT published and [date]<[site-date] and publishes it. There might be a simpler way, but it eludes me at the present time.
The documentation for this module seems very hastily created for non-developers...
Comments
Comment #1
fagowhen the content is created, schedule the execution of a rule set, which sets it to published on the given date...
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
fred0 CreditAttribution: fred0 commentedSorry, re-opening. That reply doesn't make any sense. I've been trying to do this, but Rule Sets do not have any actions that would publish content. I see how to create a Triggered Rule to schedule a Rule Set, but the only node action in Rule Sets is Load Content By ID. Nothing about publishing.
Please write some documentation! This appears to be a powerful module and I'd really like to harness that power, but we REALLY need documentation.
Comment #4
amitaibu1) Only after you load the content, you will see the action to publish it. when #260617: Expose hidden actions/ conditions is committed it will make it easier to understand.
2) How about you document your findings according to the answer Fago & I gave?
Comment #5
fred0 CreditAttribution: fred0 commentedI'd be happy to... but could you explain the use of load content by id? I get the basic idea, but the required fields are confusing. Especially Content ID. Is that supposed to be a node id (ie the last part of http://domain.com/node/123) or is it a new identifier specific to this function and provided to subsequent actions?
That's really what I'm asking for: not a tutorial, but a breakdown of the actions and conditions so that one can understand what each is meant to do more clearly and specifically.
Comment #6
fred0 CreditAttribution: fred0 commentedAnd does the Content ID field take tokens? If so, shouldn't the replacement patterns be listed?