V13 - Create a new node ComponentComposer / Migration
s
Trying to create a new node via a ComponentComposer on release. I thought I could use a migration. The issue is the SaveAndPublish works - sort of. The Node is created but is marked as published but not in cache. What am I doing wrong here?
You can ignore _contentLocatorService this is my homebrew content service locator - it just checks for the checkoutnode and it's returning that fine.
s
You can't do it in one go, you need to handle the publish in a second migration - example code here: https://github.com/umbraco/The-Starter-Kit/blob/v14/dev/src/Umbraco.SampleSite/Migrations/PostMigrationNotificationHandler.cs
s
Ah! OK - I can cope with that. Thanks for the pointer Sebastiaan.
s
ah just saw that was the v14 branch, but same for v13!
2 Views