From: Arno H. <aho...@xm...> - 2001-01-09 18:18:17
|
Pablo, > I have looked at your code (not much till now), and I didn't saw how to > incorporate the HTML you generate in a php like we do, I digged into > lib\stdlib.php and I'm figuring that this is done in the GeneratePage > function. Am I right? Or must I do in another way saying to phpWiki to > render mainfile.php , header.php and footer.php we do? If you like to have complete control over the other things, then just wri= te=20 your own GeneratePage() function. The parameters are straight forward. # GeneratePage() -- takes $content and puts it in the template $templa= te # $template ... name of the template (see config.php for list of names= ) # $content ... html content to put into the page # $name ... page title # $hash ... if called while creating a phpwiki page, $hash points to # the $pagehash array of that page. function GeneratePage($template, $content, $name, $hash) Basically, $content contains the bare rendered phpwiki page without the fluff added by the template. Grep for GeneratePage to see where it gets=20 called from and to understand how it is used. /Arno |