x First time here? Check out the FAQ
  • Avatar599posts502karma

    Contour: Save as Umbraco document with dynamic parent (where to save)?

    Thomas Kahn started this topic June 11, 2010 @ 11:39, Go directly to the topic solution

    I'm new to Umbraco Contour, but after just 1 hour I have figured out how most things work and I must say that it's worth every cent! Wonderful add-on! Great job!

    Now to my question:

    I'm working on a solution where I will have the same form on 8 different pages on my site.

    The pages represent people, so let's say that I'm on Brenda Oswalds's page, users can use the form to ask Brenda a question. If I'm on Kevin Smith's page, the user will use the form to ask Kevin a question.

    On submit the form info is saved as an Umbraco page. I've seen that I can specify a location where I want the new page to be saved (the "where to save" parameter).

    Is it possible to set a more dynamic value for "where to save", something like (pseudo code): save the new page as a subpage to the page where the form instance is currently on?

    If that's not possible, my other option will be to create 8 separate forms with 8 separate workflows, each with its own "where to save" parameter value. I just thought I'd check before I go about creating all these forms.

    Thomas Kahn

  • Michael Lawrence posted this reply June 13, 2010 @ 09:32

    You could just create a custom workflow that handles this I imagine. Maybe it could read from a property from the document type of the current page that tells it what the parent ID you want to save to is?

  • Avatar599posts502karma
    Comment with ID: 35879
    Thomas Kahn posted this reply June 14, 2010 @ 11:14

    Hi Michael!

    Yes, it looks like a custom workflow is the only way to accomplish this. I'm not sure if I have the time to dive into that - I have a tight deadline to meet.

    Thanks for yor reply!


  • Avatar128posts198karma
    Comment with ID: 36207
    Michael Lawrence posted this reply June 16, 2010 @ 09:06

    Haha, now I have a new project where I need the workflow to do exactly this! You didn't happen to work on a custom workflow that accomplishes it did you?  If not, is the source available for the existing workflows so we can modify them to suit our needs? It would be a shame if we had to rebuild this workflow from scratch just to modify a single setting.  Any of the Contour developers can chime in on this?


  • Avatar128posts198karma
    Comment with ID: 36221
    Michael Lawrence posted this reply June 16, 2010 @ 10:40

    Actually after some digging around I found this link:


    So I tweaked it out and just changed one of the settings to be a textfield instead:


    Just set the "Where to Save" setting to [#pageID] and it will save it to the current page! I hope this saves you some time :-)

  • Avatar128posts198karma
    Comment with ID: 36222
    Michael Lawrence posted this reply June 16, 2010 @ 10:41

    That link was actually supposed to be http://codeviewer.org/view/code:ff4

  • Avatar128posts198karma
    Comment with ID: 36223
    Michael Lawrence posted this reply June 16, 2010 @ 10:43

    Today is not my day! Also, how do I edit/delete posts on here? I don't see a button for that.  Anyway, the REAL correct link is:


  • Avatar599posts502karma
    Comment with ID: 36360
    Thomas Kahn posted this reply June 18, 2010 @ 09:03

    Thanks Michael!

    The site I'm working on is a campaign site so production speed goes before long term solutions (quick'n'dirty). Therefore I decided not to dig any deeper into custom workflows. I have now set up eight different forms, which is of course not the optimal solution, but once they're up it works like it should. I used the dictionary for storing common texts (the "thank you text" and tooltips) and created a template for my form. That way I could create all the forms and the workflows quite fast.

    Your solution is of course much better and it's great that it's here in the forum for future reference for others to look at.

    /Thomas Kahn

Please login or Sign up To post replies