Personal Video Database
English => Development => Scripts and Templates => Topic started by: fejao on November 15, 2011, 02:43:34 pm
-
Hi there,
I'm using the 0.9.9.21 version and I`m loving it.
The thing is that I want to export my video collection to make an small web-page
The tool works great but I don't know what goes wrong when after the page 10 from the index pages all movies gets a duplicate title, and it would be a pain to edit page to page since I have more than 1000 movies in my collection.
If someone could told me where I can take a look in which script file because i'm kind of lost here trying to figure it out where to looking for.
Also I don't understand why the generated index pages the titles aren't in an alphabetic order...I would appreciate if it could be done
Thanks in advance for your help
-
I think the templates by svenne are much better for HTML export. Try them:
http://www.videodb.info/forum_en/index.php/topic,1844.msg13919.html#msg13919
-
It shouldn't be something really difficult to do, something like:
if(title=original_name)
print: title;
else
print: title-original_name;
But I still don't know which file I should try to modify...that could make the job easier then reading all files
Thanks in advance
-
Solved, I'd think... ;) I changed my templates according to your proposal: http://www.videodb.info/forum_en/index.php/topic,1844.msg14395.html#msg14395 (http://www.videodb.info/forum_en/index.php/topic,1844.msg14395.html#msg14395)
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.
In Web Pages(Index&Movies).ptm or any other template you can resemble this by removing explicit sort commands. In Web Pages(Index&Movies).ptm you would remove
sortby="3"
sortdir="sdAscending"
There still is an issue with titles beginning with uppercase/lowercase letters or special characters (http://www.videodb.info/forum_en/index.php/topic,1210.msg4235.html#msg4235). As a workaround for the "HTML Frames" template you may copy the titles from the index file (in your browser), start Excel, insert them into the first column. Then take a text editor (like notepad) and cut all <li>...</li>-lines below <div id="list"> from the (exported) HTML source code. Paste them into the second column in Excel. Let Excel sort everything alphabetically according to the first column's data and reinsert the sorted <li>...</li>-lines
back into the HTML source.