Copied to clipboard

Flag this post as spam?

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


  • Cloud 6 posts 25 karma points
    Apr 20, 2011 @ 11:11
    Cloud
    0

    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 ?

  • Richard Soeteman 4054 posts 12927 karma points MVP 2x
    Apr 20, 2011 @ 11:32
    Richard Soeteman
    0

    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

  • Cloud 6 posts 25 karma points
    Apr 25, 2011 @ 05:51
    Cloud
    0

     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 ?

     

  • 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