Copy the files from inside the program package (control click DVDpedia and use "show package contents") into ~/Library/Application Support/DVDpedia/Templates (the templates folder might have to be created).
Copy both FancyIndex.html and FancyIndexDetails.html files and then "FancyIndexImages" folder into an "Images" folder that might need to be created. Rename all the files to a new name (prefix "My" for example).
Open the MyFancyIndex in a text editor (if using TextEdit use the open command and check the ignore rich text box). Now update the following line with the new name as well.
Code: Select all
<meta name="details" content="FancyIndexDetails.html" />
@ RabbitRun
1. Luckily for the sorting April created very clean and commented code that is easy to update. Open up the file inside the FancyIndexImages folder called "fi.shared.js" in that file you will find a function called "initializeTablesorterParsers". Amend the section that reads:
Code: Select all
// remove any instances of "The" and "A " at the beginning of a string
if (s.substr(0,4).toLowerCase() === "the ") { return s.substr(4).toLowerCase(); }
else if (s.substr(0,2).toLowerCase() === "a ") { return s.substr(2).toLowerCase(); }
else { return s.toLowerCase(); }
Code: Select all
// remove any instances of "The" and "A " at the beginning of a string
// Der Die, Das Les, La, Le
s = s.toLowerCase();
twoLetterPrefix = s.substr(0,2);
threeLetterPrefix = s.substr(0,3);
fourLetterPrefix = s.substr(0,4);
if (fourLetterPrefix === "the " || fourLetterPrefix === "der " || fourLetterPrefix === "die " || fourLetterPrefix === "das " || fourLetterPrefix === "les ") {
return s.substr(4);
}
if (threeLetterPrefix === "la " || threeLetterPrefix === "le " || threeLetterPrefix === "an ") {
return s.substr(3);
}
else if (twoLetterPrefix === "a ") { return s.substr(2) }
else { return s; }
3. For updating you can use the built in FTP option that will update instead of replace or use a Transmit or similar FTP program to syncronize your exported folder with your online site. The HTML files will always be updated as they are light weight, but the images will retain their original modification date so that only those that have changed will be uploaded.