I have a bunch of custom umbraco events creating multiple nodes at a time (via content service). I'm finding umbraco is having trouble if I call saveandpublishwithstatus a bunch of times within an event (umbraco.config locked/missing etc).
Is there a way I could tell umbraco to publish a collection of nodes at the same time? Regenerating a large umbraco.config multiple times in quick succession seems to create a few issues!
If you need a lot of publishing nodes in the same time, you can not use saveandpublishwithstatus for each node. Use simple .Save and publish all site in the end of the operation.
Thanks for the response. Will publish entire site work when the entries are just saved? Not sure how Umbraco would know what's saved and shouldn't be published yet, vs what's saved and waiting for 'batch publish'.
E.g. in Umbraco admin you can save something knowing you don't want to publish it yet, or you can save and publish to make it available on the site right away.
Bulk publish via v6 api?
Hi,
I have a bunch of custom umbraco events creating multiple nodes at a time (via content service). I'm finding umbraco is having trouble if I call saveandpublishwithstatus a bunch of times within an event (umbraco.config locked/missing etc).
Is there a way I could tell umbraco to publish a collection of nodes at the same time? Regenerating a large umbraco.config multiple times in quick succession seems to create a few issues!
Cheers,
Paul
Hi Paul,
If you need a lot of publishing nodes in the same time, you can not use saveandpublishwithstatus for each node. Use simple .Save and publish all site in the end of the operation.
Cheers
Hi,
Thanks for the response. Will publish entire site work when the entries are just saved? Not sure how Umbraco would know what's saved and shouldn't be published yet, vs what's saved and waiting for 'batch publish'.
E.g. in Umbraco admin you can save something knowing you don't want to publish it yet, or you can save and publish to make it available on the site right away.
Cheers,
Paul
Yes, publish entire site work when entries are saved and has published status. Also you can turned off events like that :
.SaveAndPublishWithStatus(umbracoPlayer, 0, false);
Cheers
Ok, so if I'm creating a new node and want it published in bulk - can I manually set its status to published, even though it isn't?
yes, you can
is working on a reply...