Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Apr 11, 2012 @ 09:44
    Fuji Kusaka
    0

    Creating a new page from Front end

    Hi All,

    Is it possible to create a page under the content section from Front End. I have an intranet system under umbraco v4.7.1 and i have a section under which user can submit advert. 

    The idea is by submitting the advert the user will also be creating a node where only the Admin will approve it to be online (Published). I have contour installed, but not sure how this will work with contour or is there another way of doing something alike??

    //fuji

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Apr 11, 2012 @ 10:46
    Jeroen Breuer
    0

    Do you mean something like this: http://our.umbraco.org/wiki/reference/api-cheatsheet/creating-a-document

    More examples on the API Cheatsheet

    Jeroen

     

     

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Apr 11, 2012 @ 11:59
    Fuji Kusaka
    0

    Hi Jeroen,

    Am looking for something like allowing a user on an intranet system to be able to Create a new page (advert) from the front end itself but will not be publised until the admin approves it.

    However am adding this new page under a another folder which lies under the root of my content section. Something like:

    Content
      Group
      Folder 1
      Folder 2
      Advert
         Advert1
         Advert2 

     

    //fuji

  • Michael Latouche 502 posts 816 karma points c-trib
    Apr 11, 2012 @ 13:13
    Michael Latouche
    0

    Hi Fuji,

    I think the example in Jeroen's link is indeed a good start, just ignore the end of it, with the Publish and caching logic.

    You need to put the code in the "codebehind" of the font-end control/macro where the intranet user can add the page. .

    Cheers,

    Michael.

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Apr 11, 2012 @ 15:05
    Tom Fulton
    2

    Hi Fuji,

    If you want to use Contour instead of the API directly it should be able to handle this as well.  There is a "Save form as Umbraco page" workflow type that can create a page with your form's data, and I'm pretty sure there is a checkbox on whether it should be Published or not.

    -Tom

  • 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