Copied to clipboard

Flag this post as spam?

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


  • David Zweben 231 posts 688 karma points
    Apr 04, 2012 @ 20:24
    David Zweben
    0

    Editing pages using a front-end Contour form, with user login

    This is a bit complex, but I'm not expecting a step by step guide; if someone could give me a general idea of how to do this, I'd appreciate it:

    I need to add a 'Locations' section to my website that will contain a few dozen pages, which will all use the same document type. Each of these pages will contain several pieces of information describing a single location. I need to set things up so that users who have been given approval can log in somewhere and edit the contents of a specific location page that has been assigned to them. They don't need to be able to create new pages or sign up for an account (I'm fine with doing those manually), just edit. These edits would, preferably, go to a site administrator for approval before publishing.

    I have a good idea of how I could do all of this by having users edit directly on the Umbraco back-end, but as I have Contour, I'd like to see how difficult it would be to set this up with one or more front-end edit pages using a Contour form. It could use either a single edit page, or an edit page for each location, as long as a user's editing privileges can be limited to a single location page, and the process of adding a new location remains simple.

    Can anyone help get me pointed in the right direction? Thanks.

  • Douglas Ludlow 210 posts 366 karma points
    Apr 04, 2012 @ 20:39
    Douglas Ludlow
    0

    Without being too specific, you're going to need to create a new workflow that contains the logic to do what you desire.You can take a look at the Contour Contrib workflow code samples.You could also check out this package which is a custom workflow that allows you to choose a specific node to save the form information to.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Apr 05, 2012 @ 09:14
    Tim Geyssens
    0

    Well you need to be able to edit an existing document type so like Douglas mentoines you'll need a custom workflow that contains the logic for that.

    If you want to make it generic you can look at the existing create content workflow type you can find the code for that on the contour project page

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies