21
Scripts and Templates / trouble using XML template
« on: August 17, 2009, 06:54:20 am »
im having trouble creating a template. Hoping soemone can help
i have changed latest xml export plugin to call a template file as per http://www.videodb.info/forum_en/index.php?topic=1017.0
if i call the param option, pvd crashes.
XML.ptm contains:
in tpl\actors.tpl contains:
if i remove param="full" setting then xml output looks like:
<movie>
<actor>
<name>{%param=name}</name>
<role>{%param=role}</role>
</actor>
any ideas anyone
i have changed latest xml export plugin to call a template file as per http://www.videodb.info/forum_en/index.php?topic=1017.0
if i call the param option, pvd crashes.
XML.ptm contains:
Code: [Select]
HEAD%
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
%HEAD%
<movie>
{%value=52 template="tpl\actors.tpl param="full"}
<title>{%value=title}</title>
<snip>
in tpl\actors.tpl contains:
Code: [Select]
%HEAD%<actor>%HEAD%
<name>{%param=name}</name>
<role>{%param=role}</role>
%FOOT%</actor>%FOOT%
if i remove param="full" setting then xml output looks like:
<movie>
<actor>
<name>{%param=name}</name>
<role>{%param=role}</role>
</actor>
any ideas anyone