English > Scripts and Templates
Export template: HTML List (English + German)
svenne:
--- Quote ---...aren't likely to remember what the dots mean
--- End quote ---
If you hover the mouse pointer over the dots a label tells what it is.
--- Quote ---...you might want to add a green dot for bookmarked items
--- End quote ---
Bookmarking and setting the filter "bookmarked" in PVD is the best and easiest way to export a custom selection of movies. But in that case I won't like to have dots in front of all entries... :(
But if you want to have an additional green dot for bookmarks just add the following code directly after %HEAD% <li> in "HTML Frames.ptm"
--- Code: ---{#StringReplace '{#StringReplace '{%value=bookmark}' '0' ''}' '-1' '<span style="color:#66FF66;font-weight:bold;" title="bookmarked!">• </span>'}
--- End code ---
In PVD you my also add a custom item with type "checkbox". If you called it "DOTTY" you would add the following code to "HTML Frames.ptm" to get a dot for that...
--- Code: ---{#StringReplace '{#StringReplace '{%value=DOTTY custom="true"}' '0' ''}' '-1' '<span style="color:#66FF66;font-weight:bold;" title="DOTTY!">• </span>'}
--- End code ---
I'm quite sure you don't want to call it "DOTTY"... :)
Call it as you like and replace the two occurances of DOTTY within the code snippet with the name you chose.
--- Quote ---...maybe get user input for the bookmark caption
--- End quote ---
For export templates all interaction possible with the user is the "Save as" dialog. Or am I wrong?
rick.ca:
--- Quote ---If you hover the mouse pointer over the dots a label tells what it is.
--- End quote ---
I never noticed. The dots aren't really big enough for hover tips. It doesn't matter, but I wonder if it's possible to highlight the list item and add a hover tip to it.
--- Quote ---Bookmarking and setting the filter "bookmarked" in PVD is the best and easiest way to export a custom selection of movies.
--- End quote ---
If by 'custom' you mean 'ad hoc'. Otherwise, using Filters and Search (or Advanced Search) is more effective. But I see your point. I can still use bookmarking to select those I want the 'dotty flag' on. ;)
--- Quote ---I'm quite sure you don't want to call it "DOTTY"...
--- End quote ---
Actually, I was going to suggest this, then I figured using bookmarking would be more convenient. I already have a [Flag] field—for which the caption shall be 'flagged' and the explanation 'Flagged: [reason]'. That works better than 'dottied'. ;)
Thanks for the code. Now I just have to decide which to use, or both...
--- Quote ---For export templates all interaction possible with the user is the "Save as" dialog. Or am I wrong?
--- End quote ---
I'm sure you're not. I was thinking of the interaction provided in the Print List page, and assuming something might be possible. But obviously it's too late once the page is generated.
Is is possible to set a variable in the header section of the template (easily changed by editing the template) that could then be used in empty.html?
rick.ca:
Update
I couldn't get the 'dotty method' to work. I have no idea why—it seems straightforward enough. But the 'bookmark method' is working fine for what I need to do. :-\
--- Quote ---Is is possible to set a variable in the header section of the template (easily changed by editing the template) that could then be used in empty.html?
--- End quote ---
I no longer believe this is necessary. This is probably of no interest to anyone, but I have to express my happiness at being able to use the tools I already have to get a job done. The rather busy screenshot is meant to convey that after I export a report, I select it in Directory Opus, click a button, and empty.html opens in my editor at the same time the report is opened in my browser. At this point, I change the report title and tag captions to whatever I want them to be, and add any necessary comments. 8)
Since these are being launched from a website by users unfamiliar with the report or anything about PVD, I think I'll always want to fine-tune this to provide whatever explanation is necessary.
I do, of course, have another question. Can a button or link be added to return to empty.html? I have a button in Firefox that goes back to the first page opened, but I doubt other do (or would think to use it). I know the following works in Firefox...
--- Code: ---javascript:window.history.go(-(window.history.length%20-%201))
--- End code ---
...but haven't a clue whether it does in all browsers, or how to add it if it does. If I'm going to use the page this way, I think my users are likely to want to go back to it.
[attachment deleted by admin]
svenne:
--- Quote ---I couldn't get the 'dotty method' to work.
--- End quote ---
Hmmm, it should work. I use that myself. ??? (So if you or anyone else wants to customise the templates that way someday, I could try to assist.)
Update for HTML Frames:
- bugfix: with 25 or less exported entries it was impossible to reset filters
- added backlink to start page (where the legend for the colored dots can be found)
- optimised display behaviour of backlinks; and a bugfix, too... the backlink to the tag cloud vanished after reload
rick.ca:
--- Quote ---Hmmm, it should work. I use that myself. ??? (So if you or anyone else wants to customise the templates that way someday, I could try to assist.)
--- End quote ---
I know, I must have been doing something stupid and unable to see it. But the bookmark method works for now. I'll wait until I have a real problem because I can't use the flag method. That day may never come, because I can always set and use the flag as a basis for selection, then use bookmarks for tagging. ;)
It's for family and friends, but you may be interested in rix flix to see how I've made use of your templates. You'll see from the IMDb Top 100 report, I'm starting to get dangerous. 8)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version