On 16/08/05, Mark Johnson <mark.johnson(a)onfiber.com> wrote:
Is it possible to "source in" or in some
other way display a page within
a wiki page. On our club site we have a "schedule.php" that read a
schedule of events from a database and creates a page. I would like to
be able to display that schedule within the Wiki frame work. I can use
an <iframe> but using that tag cause the left-hand navigation boxes not
to show up. Is there some other way to do this?
I can think of at least 2 ways of achieving this:
1) Convert your page into a "Special page" within the wiki - so that
visitting "Special:Schedule" will dynamically generate the content in
the same way "schedule.php" already does, but within the wiki skin.
2) Create an extension that grabs the output from the existing script,
manipulates it appropriately, and dumps it in the middle of any
article using containing special markup (e.g. <schedule></schedule>).
Note that caching can become a problem here, since MediaWiki assumes
that ordinary wiki pages are dynamically editted but in themselves
static, and so doesn't re-render them on every view.
Given that the content is dynamic, and already written in PHP, option
1 seems the most appropriate to me. Both are explained at
http://meta.wikimedia.org/wiki/MediaWiki_extensions though as always
the source should be treated as the ultimate documentation :)
--
Rowan Collins BSc
[IMSoP]