[Pmwiki-users] Integrating a script in a template file

John Rankin john.rankin
Wed Aug 4 23:30:57 CDT 2004


On Thursday, 5 August 2004 12:10 PM, Armine ocampo <armine_ocampo2004 at yahoo.com> wrote:
>Any ideas on how to include a php script in a template
>file? I am customizing a page that will have some
>dynamic contents. The stuff under the <!--PageText-->
>directive in the template file will need to call a php
>script that displays dynamic contents. Can somebody
>help?
>
>Thanks!
>Armine
>
>
Well you can make a function call with:

    <!--function:YourFunction stuff-->

IIRC this gets interpreted as YourFunction($pagename,'stuff');

For example:

    <!--function:PrintText [[http://www.pmwiki.org/ PmWiki]]-->

should generate a link to the pmwiki site.

Hope this helps.
-- 
JR
--
John Rankin





More information about the pmwiki-users mailing list