English > Scripts and Templates
Export template: HTML List (English + German)
beeman147:
Hi...
I was planning (and had started) to write a modern standards based html/css export template myself...
But then I stumbled on this!
I was taking a similar approach but mine would not have been as good, so that saves me work I guess ;D
I was asking a question, but I solved it myself...
Congrats on a great implementation ;)
bee
svenne:
You're welcome! Thanks for the kudos! :)
fejao:
Hi there svenne, Im a little lost right now I could give you a tip
Have you tried to avoid the duplication of the titles doing something like a little if()else ?
if(title=orig_title)
write ("title");
else
write ("title - orig_title");
It's kind of annoying having the title duplicated if you have the title as the same as the original title.
If you could point in which file I should try to modify this it could help
Thanks in advance
svenne:
Hi fejao,
if...else would be nice, of course... ;) However, things can be done with #StringReplace. It looks a little bit more complicated, though. The file of interest is movieiframe.ptm...
--- Code: ---{#StringReplace '{#ConditionAddFirst <> '' '{#ConditionAdd <> '' '{%value=origtitle}' '</p>'}' '
<h2>Original Title</h2><p id="otitle">'}' '
<h2>Original Title</h2><p id="otitle">{%value=title}
--- End code ---
The statement will be processed from inner to outer {}-brackets. Newlines within single quotes are treated just as newline characters.
#StringReplace... will replace the whole thing with an empty string if <h2>Original Title</h2><p id="otitle">{%value=origtitle}</p> equals <h2>Original Title</h2><p id="otitle">{%value=title}</p>.
#ConditionAdd... and #ConditionAddFirst... are for the case that the "original title" field is empty in the first place. Any HTML code that would be associated with it should then be omitted.
- I updated all of the templates: "HTML Frames", "HTML List", and "HTML Print Layout".
- I changed the behaviour of the menu in "HTML List" as I already did with "HTML Frames".
lch:
Hi svenne,
I love the print layout. Just what I was looking for.
I wonder if you could:
- include viewdate among the details
- allow to trim actors field (sometimes it's huge; two or three lines should do the trick)
- add an option to set the size of the poster (I would like to print a pdf file to be viewed
on my iphone
Thanks for the great work anyway.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version