Easy question

jugney - September 19, 2008 - 18:03
Project:Workflow-ng
Version:5.x-1.6
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

fago - September 25, 2008 - 10:10
Status:active» fixed

there is a publish action, which has a checkbox to configure whether to (un)publish.

#2

jugney - September 30, 2008 - 01:04

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

fago - September 30, 2008 - 09:55

It's called "Published content" - when it doesn't appear then there is no content node available in your rule.

#4

jugney - October 2, 2008 - 22:13

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

fago - October 4, 2008 - 13:34

? No, it publishes/unpublishes the node itself. node == content.

#6

jugney - October 8, 2008 - 22:17

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

jugney - October 17, 2008 - 16:58

bump

#8

jugney - October 21, 2008 - 21:23

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

fago - October 24, 2008 - 11:19
Status:fixed» active

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

ycimlynn - July 18, 2009 - 00:02

I am also having the same issue, and wonder if you can expand on

your node is known by workflow-ng - then you can use the action. E.g. use the node load action

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

 
 

Drupal is a registered trademark of Dries Buytaert.