English > Scripts and Templates

Accessing Episode Values - How?

(1/1)

Banta67:
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: ---{%value=episodes template="pages\episode.ptm" grouptemplate="pages\season.ptm"}
--- End code ---


I can specify what to retreive in the file pages\episode.ptm

--- Code: ---{%param=epnum}. {%param=origtitle}
--- End code ---

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: ---{%param=mycustomfield}
--- End code ---

If not, what exact values CAN I access in this manner?

Thanks for your help
Banta67

nostra:
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.

Banta67:
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

nostra:

--- Quote ---Can I somehow get the total number of episodes in an entry?
--- End quote ---

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.
--- End quote ---

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.

Navigation

[0] Message Index

Go to full version