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??
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
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.
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
Do you mean something like this: http://our.umbraco.org/wiki/reference/api-cheatsheet/creating-a-document
More examples on the API Cheatsheet
Jeroen
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
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.
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
is working on a reply...