IContent get value from IHtmlEncodedString property
Hi!
I´m having trouble getting the content from my mainBody IHtmlEncodedString property from IContent in a INotificationHandler<ContentPublishedNotification> event.
I have tried node.GetValue<IHtmlEncodedString>("mainBody") which returns null.
When i try node.GetValue<string>("mainBody") i get
{"markup":"
Email test
","blocks":{"contentData":[],"settingsData":[]}}
It´s the markup I wish to retrieve and display in an email that I will send out to subscribers when a page has been published.
IContent get value from IHtmlEncodedString property
Hi!
I´m having trouble getting the content from my mainBody IHtmlEncodedString property from IContent in a INotificationHandler<ContentPublishedNotification> event.
I have tried node.GetValue<IHtmlEncodedString>("mainBody") which returns null.
When i try node.GetValue<string>("mainBody") i get {"markup":" Email test
","blocks":{"contentData":[],"settingsData":[]}}
It´s the markup I wish to retrieve and display in an email that I will send out to subscribers when a page has been published.
Thank you in advance!
is working on a reply...