Is there any way to run some external PHP code after a page is saved (or even have this as part of a module if that's easier?).
The scenario is this - I'd like news articles for a site to be entered into PW. I'd like comments for the news articles to be posted in a forum. I've got PW for the news side of things, the forum software for the commenting, and I've also got a lovely PHP class available with lots of nifty functions including the ability to create a new topic in a news forum on the site.
This PHP class also gives me the ability to pull replies to a topic so that in my PW template for news articles I could list anything from the number of replies to a full-blown list of replies like you see in a blog.
What I need to do is somehow run some code after a page is saved (lets assume I've got a News page and all pages under it are news articles - makes sense
Since I know the PHP class pretty well, the only thing I'm unsure of is how to run some code after a page save.
What would also be nice, but less essential right now, is the ability to run another bit of code after a page is deleted so that if a news article is removed then the related topic in the forums is also removed.













