41
Scripts and Templates / Re: Export template: HTML List + HTML Frames + Print Layout (English + German)
« on: May 25, 2012, 09:47:59 am »
Ok, I just made the "tag cloud" backlink permanent...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
When installed I set the language in PVD to EnglishMe too.
So the template now can handle 'multi date formats'?No, only the two formats mentioned.
{#ConditionAddFirst <> '' '{#ConditionAdd <> '' '{%value=b}' '</p>'}' '
<h2>Header b</h2><p>'}
<h2>Header a</h2><p>{%value=a}</p>{#ConditionAddFirst <> '' '{#ConditionAdd <> '' '{%value=b}' '</p>'}' '
<h2>Header b</h2><p>'}
<h2>Header c</h2><p>{%value=c}</p>
...movieiframe.ptm (...) conditional statements (...) [viewdate] (...) [rating] (...) [imdbrating]...I didn't forget about that. Will be addressed soon...
<h3 class="genre">Genre</h3><p class="genre">{#StringReplace '{%value=genre}' '{%value=genre}' '('}{#ConditionAdd <> '' '{%value=genre}' ')'}</p>{#StringReplace '{#ConditionAddFirst <> '' '{#ConditionAdd <> '' '{%value=origtitle}' '</p>'}' '
with <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>'}' '
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.
Also I don't understand why the generated index pages the titles aren't in an alphabetic order...(At least with my templates...) The title index will be sorted the way it was in PVD when you invoked the export.
sortby="3"
sortdir="sdAscending"
{#StringReplace '{#ConditionAddFirst <> '' '{#ConditionAdd <> '' '{%value=origtitle}' '</p>'}' '
<h2>Original Title</h2><p id="otitle">'}' '
<h2>Original Title</h2><p id="otitle">{%value=title}