English > Scripts and Templates
Export template: HTML List (English + German)
svenne:
Hi!
To have the viewdate appear above 'Original Title' replace the following line (quite at the end of "HTML Print Layout.ptm", line 275)
--- Code: --- <h3 class="genre">Genre</h3><p class="genre">{#StringReplace '{%value=genre}' '{%value=genre}' '('}{#ConditionAdd <> '' '{%value=genre}' ')'}</p>{#StringReplace '{#ConditionAddFirst <> '' '{#ConditionAdd <> '' '{%value=origtitle}' '</p>'}' '
--- End code ---
with
--- Code: --- <h3 class="genre">Genre</h3><p class="genre">{#StringReplace '{%value=genre}' '{%value=genre}' '('}{#ConditionAdd <> '' '{%value=genre}' ')'}</p>{#StringReplace '{#ConditionAddFirst <> '' '{#ConditionAdd <> '' '{%value=viewdate}' '</p>'}' '
<h3>Seen Date</h3><p>'}' '
<h3>Seen Date</h3><p>{%value=title}</p>' ''}{#StringReplace '{#ConditionAddFirst <> '' '{#ConditionAdd <> '' '{%value=origtitle}' '</p>'}' '
--- End code ---
It looks complicated because of the StringReplace statements. I added those so that empty fields (including their headers) aren't displayed at all. Here, I made viewdate behave the same way now.
lch:
thx mate, works like a charm.
svenne:
You're welcome! :)
@rick.ca:
--- Quote ---...movieiframe.ptm (...) conditional statements (...) [viewdate] (...) [rating] (...) [imdbrating]...
--- End quote ---
I didn't forget about that. Will be addressed soon...
rick.ca:
--- Quote ---I didn't forget about that. Will be addressed soon...
--- End quote ---
Thanks. No rush. I'm more interested in understanding the method of skipping empty fields, so I can make modifications as the need arises.
ouafouaf:
Hello there!
Wanted to export my list using your template, which I hadnt used for many months, when a wild bug appeared.
The export goes well, no message, then the html page opens in firefox.
But the files folder wasnt created correctly, it is called "%fname%_files". So yeah nothing works.
Looking around in the template code, I tried to figure out a way around this. I managed to make the thing work by simply replacing all the call for "%fname%_files" as well as "{%value=233}_files" by simply "files". But the film images still wouldn't show up...
I believe the problem is not in the code but somewhere in my pvd config or my system ?
I use windows 7 x64 pro, and pvd 0.9.9.21.
Any idea ? :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version