Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Where in ContentEventArgs is the HTML markup when content is saved or published?

$
0
0

We are trying to alter some HTML when content is saved or published in EpiServer 8.0.  In the Global.asax we registered an OnPublishedContent event and an OnSavingContent event.  But upon inspecting the ContentEventArgs, I'm unable to locate the actual content markup that we want to adjust.

We have this in Application_Start()

DataFactory.Instance.PublishedContent += OnPublishedContent;
DataFactory.Instance.SavingContent += OnSavingContent;

And this is one of the signatures:

private void OnPublishedContent(object sender, ContentEventArgs contentEventArgs)

The "Content" property of ContentEventArgs shows ID, Name, and Page Type.  But it doesn't show the markup.  How do I get to that markup so we can adjust it before it gets saved?  Thanks.


Viewing all articles
Browse latest Browse all 9076

Trending Articles