Hello Team,
I need an event to handle when ever any content item is updated, so that I can run some business logic to validate and read the content. Is there any way to do so in DNN?
I tried to capture them using ModuleUpdated event, but this event is not triggred when content of module is updated. Here we are looking for the modules like "HtmlModule" in which we can add any html content. Please suggest me if there is any such way or code example where we have done something similar.
In my analysis so far I have found-
In EventLog we have many events like MODULE_UPDATED, MODULE_CREATED, TAB_MODULE_UPDATED, FILE_CREATED, etc... For few of them we can associate event handlers Like Module Events, File Events. So there we can intercept them in our code persomer some additional business logic as required. But for few like Tab Modules events we do not have any way to associate event handlers. Also for few cases like when ContentItem is updated I do not see any event log or event handler.
Regards,
Alok
There isn't an event for this that I'm aware of. The obvious thing to try is a database trigger, but those can be tricky to maintain longer term for numerous reasons.
Instead, I'd suggest considering having a well-planned Scheduled Job to do this for you.
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.