Help - Search - Members - Calendar
Full Version: Script to run at rebuild
Movable Type Community Forum > Additional Resources > Tips and Tricks
Steddyj
I've written my own script to parse the XML files of several blogs on my site (whose templates have been altered to fit my needs).  The script takes information that it finds there, and creates an shtml file with summaries of my blogs entries -- Title, what blog is if from, excerpt, posted by and when,  link to the blog index.shtml#entrynum.  I'm taking this file and including it in my main index for my site, so visitors can see what is new on my blogs without having to visit each one.

My question is, how do I make this Perl script run whenever one of the blogs is updated -- i.e., run when a new entry is made to any blog?  Otherwise I have to run it manually anytime someone makes a new entry or edit, or use it as a CGI included in my main index, which will cause undue stress to my poor webserver.

Thanks for the help.
girlie
Is there a particular reason why you've done this with a script, rather than creating a "recent entries" index file within each blog and including each of those files into your main page with SSI?

Doing it through MT would ensure that the listing for each blog is automatically updated when a new entry is posted.
Steddyj
Besides certain control issues  I have wink.gif my script lets me put out all of the entries in the order they were posted, regardless of which blog they were entered into.

Were I to do it your way, all the entries would be sorted by which section they came from, then chronologically in the section.  I want it to be universally chronological.
Steddyj
I'm still looking for help on this, anyone got any suggestions?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.