[Pmwiki-users] Embedded php in template (.tmpl) files

Wayne Lee wl.pmwiki
Sat Apr 3 12:55:20 CST 2004


Hi,

I'd like to modify the html template to
include embedded php code to be
executed by PmWiki before it serves
up the Wiki page.

Does anyone know how I can easily
do this?  Or does this go against the
spirit of templates?

Specifically, I want to add a navigation
link to the main WikiGroup page if
the current Wiki page title is not the
same as the WikiGroup name, i.e:

<?php if ($Group != $Title) echo "[link info goes here]"; ?>

Thanks,
Wayne


(BTW, I'm new to PmWiki and Wikis
in general and am ridiculously impressed
by PmWiki's ease of use.  Great job
all!)




More information about the pmwiki-users mailing list