|
Question to new page format variables: msg#00053web.wiki.pmwiki.user
Currently I am following an approach which keeps the entire page generation process under customization control. I have a default_browse.php mainly useing PrintFmt. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd"> <html> <head> <style type='text/css'> ... </style> </head> <body> <div> <div><a href='<?php PrintFmt($pagename, "\$ScriptDir");?>' border="0"> <img src='<?php PrintFmt($pagename, "\$ScriptDir/local/logo.png");?>'/></a> <span style='font-size:60px'>Rittertag</span> </div> <div align='right'> <?php PrintFmt($pagename, "function:PrintGeneralMenu");?> </div> </div> <table width="100%" > <tr> <td valign="top" width="150px"> <div class="menuframe"><?php PrintFmt($pagename, "wiki:\$Group.Menu default.Menu") ?></div> </td> <td valign="top" align="left" > <div class="wikiheader"><?php PrintFmt($pagename, "\$Group - \$Title");?></div> <div class='wikibody '><?php PrintFmt($pagename, "wiki:\$Group.\$Title") ?></div> </td> </tr> </table> </body> </html> This works very fine, the page layout is done in one place and can be edited through an HTML editor. Now my questions: 1. does it matter (e.g. is there a performance impact) if I use PrintFmt($pagename, "wiki:\$Group.\$Title") versus PrintWikiPage("\$Grouip.\$Title") If it doesn't matter, why do we need PrintWikiPage? 2. If I use PrintFmt($pagename, "wiki:\$Group.Menu default.Menu") Is there a way to find out which page is actually printed. This is important since I want to specify e.g. a general link to "Edit Menu" within the function PrintGeneralMenu. --Bernhard |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Restore Not Working: 00053, Patrick R. Michaud |
|---|---|
| Next by Date: | IncludeAble hack needs help: 00053, Joris |
| Previous by Thread: | Re: Restore Not Workingi: 00053, Patrick R. Michaud |
| Next by Thread: | Re: Question to new page format variables: 00053, Patrick R. Michaud |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |