Just wondering... it seems I should be able to intergrate this with WebTemplates this way:
- make a copy of show.php (which would be called for pages that required news), assume it's called shownews.php.
- edit shownews.php and require/include newconfig.php
- assign output of news() to a variable, eg $newsoutput=news()
- use variable in a WebTemplate.
Obviously, I'd want to keep track of the number of queries so it didn't bog down.
|