Easy question
| Project: | Workflow-ng |
| Version: | 5.x-1.6 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
You're going to either love me or hate me for having this easy question (Sorry, I just couldn't find the answer!)
I'm using Ubercart and need to sell events that will unpublish on purchase (They are private sessions, and obviously only one is available of each slot. I want them to unpublish on purchase so that they no longer show up on the event calendar when they're purchased).
There is no Action pre-configured in Workflow-ng for unpublishing a node. But that's all I need to do: unpublish an event when it is purchased. How can I create this custom Action? As I said I searched but couldn't find how to code this!
(And sorry, I don't know PHP. So keep that in my in any resources you point me to)
Thank you,
Jugney

#1
there is a publish action, which has a checkbox to configure whether to (un)publish.
#2
Thanks for the reply, but could you be more specific?
I'm using workflow-ng 5.x-1.6 under Drupal 5.7. I've created a new configuration and added the appropriate conditions. When I go to select an action, I don't see anything for publishing or unpublishing nodes.
Thanks again,
Jugney
#3
It's called "Published content" - when it doesn't appear then there is no content node available in your rule.
#4
Thanks for the feedback so far. I've been looking at this action, but it appears it publishes or unpublishes content within a node, rather than the node itself. I would like to unpublish the node. Is this possible?
Jugney
#5
? No, it publishes/unpublishes the node itself. node == content.
#6
AH! Thank you for clarifying.
I only get the option of selecting the action "Publish/unpublish content" if the Event is something under the node list (i.e. Content has been created, content has been updated, etc). The actual event is a customer completing checkout, and unfortunately Workflow-ng only gives me a set of actions it thinks should be related to that.
Is there a way to utilize the unpublish action when the event invoking it is not a node-related event?
Thank you again,
Jugney
#7
bump
#8
I just noticed this thread was marked as fixed after the first response I got, but it is not actually resolved. Just thought that might be why there's no response - if anyone can help, please do.
Thanks in advance,
Jugney
#9
Then you just re-open the issue. ;)
You have to make sure that your node is known by workflow-ng - then you can use the action. E.g. use the node load action - or perhaps your event should provide the node as argument (that depends..).
If your issue is resolved, just mark it as fixed again.. :)
#10
I am also having the same issue, and wonder if you can expand on
I also need to process something from an order. When you are using the status event "Order status gets updated", the only option you are given is "Load content by id".
However, there is nothing in the documentation to show what the parameters mean and what I am to do with this. So...I am a bit confused how I load a node, and update a particular cck field within it.
Are you able to point the direction a bit to exactly where in the documentation one would find this?
Thanks