Page 1 of 1

Processing content after sunmit

Posted: Tue Sep 01, 2020 3:00 pm
by andrewvideouk
its prosbile to Process content like pages after been sunmit. I would like to add a php script to filer out any bad content, Clean up full stops with spaces after, remove swear words and clean up the html.

I can do the filering when the page been displayed using UDT but only problem that its takes time to run the script and posblile have time out or run out of memoy. if we had a load people viewing the page at the same time.

Re: Processing content after sunmit

Posted: Tue Sep 01, 2020 7:41 pm
by DIGI3
Take a look in Event Manager. the ContentEditPost event is probably the one you want. There are other more advanced methods but that's probably the most approachable.

Re: Processing content after sunmit

Posted: Sat Sep 05, 2020 11:54 am
by andrewvideouk
Would I need ContentEditPre? Triggered before a content object is saved to the database.

I would like to something like
str_replace("facts", "truth", $content);

than savee it to the database

How would I do that. Is there a sample UDT templace how to do this?

Thanks