Collection name for info view

Any trouble you encounter with the Pedias, here's the place to ask for help.
Post Reply
carmenm
Contributor
Contributor
Posts: 7
Joined: Fri Dec 21, 2007 8:27 am

Collection name for info view

Post by carmenm »

Hi,

is there a key to get the collection name in an info view template?
If not that would be a great addition because i could add special links for movies in my wish list to see in which movie theater i can see them.
User avatar
Conor
Top Dog
Posts: 5346
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Post by Conor »

You can see what collections a movie is in by adding the following key to any info template:

Code: Select all

[key:collectionNames]
Depending on the style the surrounding HTML code differs a bit, but you can create a copy of any field line from the same info template and modify it. You can also remove the <!--IF ... ENDIF--> tags as a movie will always have at least one collection, so the if is always yes. To create your own version of the template look in the forum or the help file on how to copy an info template. To summarize copy the template from inside the program DVDpedia.app/Contents/resources/WebViewFiles/en/ to ~/Library/Application Support/DVDpedia/InfoTemplates and change the name of the template file. Also the images folder from DVDpedia.app/Contents/resources/WebViewFiles/Images to ~/Library/Application Support/DVDpedia/InfoTemplates/Images and you will have to create the folder [/b]InfoTemplates if you have never installed an info template from our extras page.

For the default collection.html the line you would add to the template would look like this:

Code: Select all

<div class="field"><div class="title">In Collections:</div><div class="text"> [key:collectionNames]</div></div>
Post Reply