Hi!
I'm making a site where I'm using e-commerce to sell minor changes like sticky status and front page promotion as an "add-on" to the existing nodes.

Because there's no way to do this directly (and because it would be a nightmare to create duplicates with all these variations), my idea was to make the user buy the "add-on" he wants and then apply it to one of the several content types using a simple workflow.
Users don't have create permissions to these content types.

So, lets say you buy 1 sticky add-on and decide to use it on your next car review post in the auto section.
(If you are not familiar with e-commerce and pay-per-node you have a balance page where you can see how many items left you can create.)
What it should do, when you click on the create link in the sticky items, is:
- opening the submit form for the simple sticky node (title + taxonomy) and when you submit it;
- it should open a new car review submit form with the already defined title and taxonomy prepopulated and as soon as the user completed the rest of the form;
- it would be published in the car review section with the sticky status on.

Everything works fine except that workflow_ng creates the car review node instead of letting the user do that.
Is there any way to make the user edit the car review form before or after it's submitted?

Thanks in advance!

Ricardo

Comments

amitaibu’s picture

Status: Active » Postponed (maintainer needs more info)

Ricardo,

I am not sure I understand your needs, but it sounds to me your 'forcing' a bit the system. Why not let your user create the content nad edit it as much as they want. And apart of the regular form allow them to make it sticky/ front page.

a non e-commerece example:
1. Create a Custom Content Link (CCL).
2. Define the CCL to make a content sticky.

So now the stickiness of the content is defined outside of the form.

rbl’s picture

I guess my example was not the best =)
A close example would be a classified ads system. Imagine you want to sell ads and charge for bold, highlighted and promoted listings.

Like I said, my only problem now is that workflow_ng creates and posts the ad instantly, instead of showing the form to the user.

I'm invoking the rule on event: Content has been created
Conditions: content has type "promoted"
Actions: Add new content

I tried everything I could remember with no success. Is there any action I can use? Or maybe a tweak/hack to the current one?

Thanks =)
Ricardo

amitaibu’s picture

Ricardo,
The add new content creates a new node, without a form - this is by design.
For the ads example, maybe this can work for you:
1. Let the user create the content
2. Use E-commerece to sell him access to the CCL link to promote a content

amitaibu’s picture

Just to add to comment #3,
In Ubercart you can allow users to purchase a role. So, you can have a role called Promote.
When user buys a role he can promote one content (i.e. have access permissions to see the CCL), and then the CCL link will also have the "remove role" action.

rbl’s picture

Thanks! That was a terrific idea! =)
Unfortunately it doesn't address one issue, quantity management! If the user wants to promote more than one item, this solution falls short, because the role is removed when he promotes the first node.

Any other good ideas? ;)

Ricardo

amitaibu’s picture

rbl’s picture

Can you please elaborate? I don't understand what you mean.

amitaibu’s picture

@rbl,
In drupal every URL has a function related to it, and an access permission is checked. I was thinking about hooking into this in order to allow purchasing the right for certain URL access.

rbl’s picture

Ah ok! I get it! I was a bit confused because that link is pointing to nowhere and it seemed that you wanted to show me something =)

Thanks!

amitaibu’s picture