Copied to clipboard

Flag this post as spam?

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


  • Nauman 98 posts 118 karma points
    Mar 09, 2010 @ 11:20
    Nauman
    0

    two pages with same name

    Please review my following site structure.

    Site1
    -index
    -about

    Site2
    -index
    -about

    I have written a c# code to publish the nodes.

    // publish all the sub pages to create html / css
    umbraco.BusinessLogic.User user = new umbraco.BusinessLogic.User(0);
    Document post = new Document(nodeId);
    post.Publish(user);
    umbraco.library.UpdateDocumentCache(post.Id);

    When I publish the "index" in "Site2" it publishes the "index" in "Site1" though in my code i provide the nodeid of site2->index to publish. Another thing that might clear my point, I am using Darren plugin to export the pages in html / css, so when my code publishes the "index" in "Site2" it publishes the "index" in "Site1", hence generate the html / css for "index" in "Site1". Any idea what to do with it?

    Nauman

  • 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