[pmwiki-users] pmwiki <div>

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 11 08:03:01 CDT 2005


On Thu, Aug 11, 2005 at 02:58:22PM +0200, Patrick Ogay wrote:
> It's an interesting question,
> It might be interesting to get pmwiki as module  for an other product., 
> like a cms.
> 
> >   case "wiki":
> >    include("pmwiki.php");
> >    break;
> >   case "forums":
> >    include("forums.php");
> 
> it's possible to include pmwiki.php. 
> Of course pmwiki generates a full html site according the template you use 
> (derfault: pub/skins/pmwiki/pmwiki.tmpl) 

There are several problems with including pmwiki.php from within
another PHP script or package.  The first is that pmwiki needs 
to be able to generate HTTP headers to help with caching control.
PmWiki also needs to be able to insert things into the <head>
section of the HTML document -- i.e., it's not just output that
can go in the <body> tag.  Lastly, one has to be have a way to
be able to pass the correct environment to pmwiki.php whenever
something like ?action=edit or ?action=upload is performed.

This isn't to say that these things cannot be done with lots
of customizations, but unfortunately HTML and HTTP in general 
are not modular enough to be able to compose an output document 
from several independent scripts.

Pm




More information about the pmwiki-users mailing list