Do you just want to create some documents? Might be easier to add a usercontrol and configure that usercontrol in the /config/dashboards.config file. Then you can use the code that the blogpost describes and add a button on the usercontrol to start the process.
If you want to use it to import content you might checkout cmsImport as well
I would like to be able to programmatically add content pages to Umbraco without user interaction. The program reads a static HTML file that is supplied as a feed and adds this HTML to the content page programmatically.
How to Programmatically create content page in umbraco?
How to Programmatically create content page in umbraco?
The following Post recommends adding the code in a web service and copying it onto your Umbraco site.
http://www.bayshield.com/2010/3/3/programmatic-document-creation-in-umbraco.
How do I copy the web service to my Umbraco site?
What are the configuration changes to be taken care of?
How do I invoke the Web Service?
I have currently added a service reference in m Umbraco site for the web service and made following changes in my umbracoSettings.config
<webservices enabled="true">
<!-- You must set user-rights for each service. Enter the usernames seperated with comma (,) -->
<documentServiceUsers>admin</documentServiceUsers>
<fileServiceUsers>admin</fileServiceUsers>
<stylesheetServiceUsers>admin</stylesheetServiceUsers>
<memberServiceUsers>admine</memberServiceUsers>
<templateServiceUsers>admin</templateServiceUsers>
<!-- type of files (extensions) that are allowed for the file service -->
<fileServiceFolders>css,xslt</fileServiceFolders>
</webservices>
What am I missing ?
Hi,
Do you just want to create some documents? Might be easier to add a usercontrol and configure that usercontrol in the /config/dashboards.config file. Then you can use the code that the blogpost describes and add a button on the usercontrol to start the process.
If you want to use it to import content you might checkout cmsImport as well
Cheers,
Richard
Hi Richard,
I would like to be able to programmatically add content pages to Umbraco without user interaction. The program reads a static HTML file that is supplied as a feed and adds this HTML to the content page programmatically.
How do i go about this ?
is working on a reply...