Personal Video Database

English => Development => Scripts and Templates => Topic started by: Banta67 on February 22, 2010, 04:34:16 pm

Title: Accessing Episode Values - How?
Post by: Banta67 on February 22, 2010, 04:34:16 pm
Hello,

I have managed to get some of the values from episode records but, am having a hard time figuring out how to access some of the ones I still need.

For instance, if I use this code in an export template....
Code: [Select]
{%value=episodes template="pages\episode.ptm" grouptemplate="pages\season.ptm"}

I can specify what to retreive in the file pages\episode.ptm
Code: [Select]
{%param=epnum}. {%param=origtitle}
That will export each episode Number and Title.

How do I access other parameters such as the image assigned to the episode, or the POSTER . or the file path. etc.

Can I add a custom field to the episode and then access that field in a param such as
Code: [Select]
{%param=mycustomfield}
If not, what exact values CAN I access in this manner?

Thanks for your help
Banta67
Title: Re: Accessing Episode Values - How?
Post by: nostra on February 24, 2010, 01:29:05 am
Currently you can only access season number, episode number, title, origtitle, year, id (num), imdbrating, rating, description and url for episodes from the export template.
Title: Re: Accessing Episode Values - How?
Post by: Banta67 on February 24, 2010, 03:47:40 pm
Thank you for the reply.

Can I somehow get the total number of episodes in an entry?

Do you think it would be difficult to add some additional values to the episodes to retrieve? Getting the path and image values for the individual episodes at the least would be a great help.

Thanks again. PVD is Great!

Banta67
Title: Re: Accessing Episode Values - How?
Post by: nostra on February 24, 2010, 11:43:22 pm
Quote
Can I somehow get the total number of episodes in an entry?

No

Quote
Do you think it would be difficult to add some additional values to the episodes to retrieve? Getting the path and image values for the individual episodes at the least would be a great help.

I do not think it will be a big deal to add some additional values. Feel free to post your suggestions and I will do my best to include them in the next version of the export plugin.