[pmwiki-users] Q: conditional text in skin templates

John Rankin john.rankin at affinity.co.nz
Tue Sep 27 16:52:17 CDT 2005


Is there a way to have text in a skin .tmpl file 
rendered only if a wiki page exists?

I would like to generate the following xml:

<notice kind='legal'>
    <!--wiki:Site.PagePrintHeader-->
</notice>

But I only want the <notice> element if 
Site.PagePrintHeader exists.

I know I can write

    <!function:LegalNotice Site.PagePrintHeader-->

and DIY, but I'm wondering if there is a better way.

TIA
-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list