Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - CAD

Pages: 1 [2]
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:
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 :)


 

22
Scripts and Templates / "imagepath" statement
« on: August 11, 2009, 08:03:40 am »
Hi - Great program.
I'm trying to export posters to the root directory of where im saving xml.

under%Options%
imagepath="images/"

I have tried removing this but no posters get saved. Also tried setting it to imagepath="". Posters dont get saved
I can set it to imagepath=" " (space) but xml <tag>{%value=poster}</tag> then has a space at the front of it.
I can set it to imagepath="extension", this saves poster as extensionimage_blah_blah.jpg but also creates a directory called extension

Also -  is it possible to save the poster as titlename. Set something like imagename="{%value=title}.{%value=imageextension}" under options so to save image as title.jpg. When doing export it sets the outputted jpg name to title (or whatever other options u want.)



Pages: 1 [2]