[Pmwiki-users] Question to new page format variables
Bernhard Weichel in pmwiki-users
pmwiki-users at b-weichel.2in.de
Sat Jun 14 01:37:30 CDT 2003
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
More information about the pmwiki-users
mailing list