Catch article addition

Alexander Pinin asked on June 23, 2017 15:08

Hello everyone.
I would like to run some script on my system when an article is added.
Is there an elegant way to do it or I should invent some kind of hack?

Correct Answer

Juraj Ondrus answered on June 23, 2017 15:11

Hi Alexander,
You can use the global event handler and use the document events, for example the document insert before/after handler to run your code when a new page is added.

3 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.