Copied to clipboard

Flag this post as spam?

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


  • Johan 1 post 20 karma points
    May 25, 2009 @ 19:05
    Johan
    0

    Create document on diffrent website

    Hi all

    I'm develop a E-commerce site and have a question for creating a document on umbraco site on a diffrent website.

    My E-commerce site is build in MVC - and use Microsoft Commerce Server (for products, orders and marketing banners) and Umbraco (for MVC Route and Content for all my pages, blog).

    I have one website for my e-commerce and one website for umbraco. It works great to get all content from Umbraco. But now I want to create a blog comment document in the umbraco website.

    With way should I go? My first thought was Webservice, but I wonder if it is possible to create a document by the API even if the umbraco site is on diffrent website?

  • Petr Snobelt 923 posts 1534 karma points
    May 25, 2009 @ 21:47
    Petr Snobelt
    0

    I using webservice for something similar to this, but it should be possible to use API, you only need right umbracoDbDSN key in web.config.

    http://en.wikibooks.org/wiki/Umbraco/SamplesandArticles/Creatingumbracopages_programmatically can help.

  • Daniel Lindstrom 454 posts 271 karma points
    May 26, 2009 @ 09:44
    Daniel Lindstrom
    0

    I've done it like this:

    A comment form on a page on the remote site. When submitted the comment is posted using jquery ajax to a page on the umbraco site. That page only contains an XSLT macro that reads the posted parameters and forward them to an XSLT extension that creates the node using the API.

    Similiar the display of the comments on the remote page is fetched with jquery ajax (jquery load functions is simple and works great for this) from a page on the umbraco site that lists the comments using xslt.

  • 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