I am attempting to use the content service in an umbraco razor template (awful idea and bad practice I know).
I have had success in the past using the content service where you create a node and specify name, parentId, contentTypeAlias.
In Umbraco 14 I do the same thing, I get no errors, no log messages indicating failure to create/success, etc. I even took the code straight from : https://docs.umbraco.com/umbraco-cms/reference/management/services/create-content-programmatically
and I'm having no luck. Any ideas?
Treefiddy
06/19/2024, 6:50 PM
Save(IEnumerable someContent)
works and only after calling save does
SaveAndPublish(IContent aPieceofContent) work