[pmwiki-users] pmwiki <div>

Gabriel Jägenstedt gabriel.j at telia.com
Thu Aug 11 08:32:05 CDT 2005


On the environment thing, it was simple to just edit ScriptUrl to
$ScriptUrl = $ScriptUrl .'?page=wiki&'

Its unfortunate that so much has to be done via the headers. But it
doesn't explain why everything gets cut of. Is there something that says
"Stop generating html code here"?

Patrick R. Michaud wrote:
> 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
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
> 





More information about the pmwiki-users mailing list