Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas Kahn 602 posts 506 karma points
    Jun 03, 2010 @ 09:35
    Thomas Kahn
    0

    Can Contour create new nodes?

    Hi!

    I've just purchased Contour for one of my upcoming projects and I thought it worked a bit like Doc2Form, creating a new node in Umbraco each time a user submits a form. But when I look at some of the demos it looks like Contour has its own separate data storage. I see that information submitted via Contour can be accessed via XSLT, but I was planning for a workflow as follows:

    1. A site visitor fills in a form and submits it.
    2. The information from the form is used to generate a new (unpublished) node in Umbraco. The node is created in a folder which has a notification activated for the event "Create" and an email is dispatched to an editor.
    3. The editor reviews the newly created node and adds some new content. When the editor is happy, he/she publishes the new node.

    Important: It's not essential that a node is created, I just thought this was the easiest way. If there is another way to setup a chain that looks something like this:

    1. Visitor fills out form and submits it.
    2. Information from the form is stored but not published. An email is dispatched to an editor.
    3. Editor reviews the content and adds some new content. Editor published the info.
    4. Information is listed on the public website.

    Can this be achieved with Contour "out of the box" or do I need to use the API? Perhaps Doc2Form would be easier in this case?

    Thanks in advance!

    /Thomas Kahn

     

     

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jun 03, 2010 @ 10:08
    Tim
    1

    Yes, that's possible out of the box, there's a built in workflow that alows you to publish to a pre-specified page, and there's a workflow item in the projects that I made which allows the user to select a section of the site from the dropdown so that the page published to is dynamic.

    :)

    The publish workflow allows you to map fields from the frm to fields on the document type that you're going to publish as. You can also specify if the node is published straight away, or just saved.

    Hope that helps, let me know if there's any other information you need.

  • Harald Ulriksen 207 posts 249 karma points
    Jun 03, 2010 @ 10:20
    Harald Ulriksen
    0

    Hi Thomas,

    this is possible out of the box using a pre-defined workflowtype called "Save as umbraco document".

    1. Click the workflows node under the form you wish to use for this.
    2. Add a new workflow to the submit event.
    3. Select "Save as umbraco document" in the type,
    4. Select the document type you wish to create in the document type dropdown
    5. Configure mapping from form to document type
    6. leave publish checkbox blank
    7. decide where to save it.

    This will create the document once the form is submitted, and your editor can review it as a document. However, you can also let the editor review records in contour and approve the record before actually creating and publishing the document. It depends on which event you wish to use as a trigger for the workflow (submit/approve), if the form is set to automatic or manual approval (settings tab) and if the workflow is set to publish the new document automatically or not.

    Hth,
    Harald.

Please Sign in or register to post replies

Write your reply to:

Draft