// 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?
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
is working on a reply...