Hello All
I need to direct users to a thankyou page once they submit a node.But I do not want this to happen for all node-types. This needs to happen for just one CCK node type that I have. In my earlier drupal version, nodegoto module worked gr8 for me, but nodegoto is not yet ported for drupal 6. So I tried to attain this fnctionality using triggers and actions. I've created the action fine, but there is no trigger which says "After saving a new post - of type CCK1".
Any help??

Comments

bwv’s picture

Have you looked into the workflow family of modules?
----------------------------------------------------------------------
http://www.bwv810.com
http://davidhertzberg.com

I am a writer, researcher and solo drupal freelancer.
Je peux communiquer en français. / Я могу общаться на русском языке.

gargsuchi’s picture

yes i already have workflow installed and working. But even that is not helping me at all.
Currently I have a workflow with 2 states - Draft and Done. I can assign an action to the "trigger" when the workflow state changes.
But I need my action to be performed when the node is created (it is in creation stage)
Is it possible that the workflow of a node defaults to "Draft", i think in such a case I might be able to use workflow trigger.

WorldFallz’s picture

i think you need the workflow_ng module (which has been renamed to "rules" for d6) though it's still in alpha.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

gargsuchi’s picture

But as yo said - it is still in alpha and too confusing for me.
Anyway - will try it again.

gargsuchi’s picture

It allowed me to create a rule as follows:
Event - After Saving New Content
Conditions - Created content is Submissions (my CCK node type)
Action - Redirect to a tokenized URL (actually it is just a simple URL - a thank you page)

But when i create a new "Submission" - it still takes me to the node view page. Since I am allowing anonymous users to create "Submissions" and they are not allowed to see the ned till it is approved by admin, this leads them to an Access Denied error.
Someone please help.

WorldFallz’s picture

you're more likely to get assistance if you post an issue in the rules issue queue...

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

gargsuchi’s picture

The following snippet was added to the end of the function node_save in node.module:

if (($node->is_new) AND ($node->type == "submissions"))
        {
                drupal_goto('http://www.mydomain.com/thank-you.html');

        }