English > Scripts and Templates
Export template: HTML List (English + German)
arj0n:
@Svenne:
In the pimp-readme is stated: "Links will be added for genres, categories, countries, director names, actor names, and languages of audio tracks"
But which template field is the "language of audio tracks"?
I added this line to movieiframe.ptm : <h2>Language</h2><p id="langs">{%value=langs}</p> but it doesn't show up in the iframe at all. Probably cause I doesn't have it filled in my DB.
I added this line to movieiframe.ptm : <h2>Language</h2><p id="origlang">{%value=origlang}</p> but it didn't got linked after the pimp.
Also:
Can you add fields to get linked by pimpHTMLframesExport.exe?
It would be nice if the entries in the 'producer' and 'writer' fields also get a link for example
Great template b.t.w.!
svenne:
The template field is {%value=astreams params="full" template="HTML Frames\astreams.ptm"}. It's the line beginning with <h2>Audio</h2> in movieiframe.ptm and it refers to the subtemplate astreams.ptm. The language information is called by {%param=langs} in astreams.ptm.
Your browser would display something like this in the end (as long as in PWD the "languages"-field is not empty, of course):
Audio:
English (mp3, stereo)
pimpHTMLframesExport.exe will process this part of the exported file. Any additional lines with {%value=langs} or whatever are ignored. pimpHTMLframesExport.exe is just a bonus thing working with the existing template as is. You can add own lines and costumize the template to some extend and pimpHTMLframesExport.exe should still work fine, but it won't touch, link or mess around with the customized parts of the template.
arj0n:
--- Quote from: svenne on September 25, 2011, 12:26:47 pm ---The template field is {%value=astreams params="full" template="HTML Frames\astreams.ptm"}. It's the line beginning with <h2>Audio</h2> in movieiframe.ptm and it refers to the subtemplate astreams.ptm. The language information is called by {%param=langs} in astreams.ptm.
Your browser would display something like this in the end (as long as in PWD the "languages"-field is not empty, of course):
Audio:
English (mp3, stereo)
--- End quote ---
Ah, added this to movieiframe.ptm:
<h2>Audio</h2><p id="astreams">{%value=astreams params="full" template="HTML Frames\astreams.ptm"}</p>
and it does show the field properly.
But... the items in that field shown in the browser still havem't got a link after running the pimper.
quoting from the pimper readme file:
"Links will be added for genres, categories, countries, director names, actor names, and languages of audio tracks, if those
appear in two or more database entries."
links are added after running the pimper: genres, categories, countries, director names, actor names
links are not added after running the pimper: languages of audio tracks.
So, do I still use the wrong field? or is it something else?
--- Quote from: svenne on September 25, 2011, 12:26:47 pm ---pimpHTMLframesExport.exe will process this part of the exported file. Any additional lines with {%value=langs} or whatever are ignored. pimpHTMLframesExport.exe is just a bonus thing working with the existing template as is. You can add own lines and costumize the template to some extend and pimpHTMLframesExport.exe should still work fine, but it won't touch, link or mess around with the customized parts of the template.
--- End quote ---
I understand but I was looking for an answer why I can't get the field "language of audio tracks" linked as stated in the readme of the pimper...
Thanx for the info.
svenne:
pimpHTMLframesExport.exe looks for certain structures in the exported HTML-files. If these structures are not present (or different from the original template) it won't work. Did you try the original template to see, if it works there? The readme just explains what it does with files generated by the original template. It was never meant to be some kind of universal extention to the template script engine of Personal Video Database...
Also, links will be added only if there are two or more movies with identical language entries.
pimpHTMLframesExport.exe does not search for the structure <h2>Audio</h2><p id="astreams">...</p>. So it just ignores that line. pimpHTMLframesExport.exe searches for list elements belonging to a list with the classname "sound".
In the exported HTML files it looks like this:
--- Code: --- <h2>Audio</h2>
<ul class="sound">
<li>Spanish (AC3, stereo)</li>
</ul>
--- End code ---
or like this, if there are two audio streams:
--- Code: --- <h2>Audio</h2>
<ul class="sound">
<li>English (AC3, 6 channels)</li>
<li>Italian (AC3, stereo)</li>
</ul>
--- End code ---
arj0n:
Found something strange:
when having only 1 language: a link is added.
when having >1 language: no links are added.
In my test I always had 2 languages, separated by a comma. That way it seems not work.
I thought it was possible to have >1 language and getting links for all of them...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version