Modifying Secondary Details of MyFancyIndex

Any trouble you encounter with the Pedias, here's the place to ask for help.
Post Reply
Black Smurf
Addicted to Bruji
Addicted to Bruji
Posts: 30
Joined: Mon Mar 26, 2007 11:15 am
Location: Germany

Modifying Secondary Details of MyFancyIndex

Post by Black Smurf »

I'm currently playing around with the new export template "FancyIndex"... finally a sortable table - thank you!

I've modified the main table to my taste, but the secondary details is far to verbose for me (includes lots of data fields I do not want there). And I've been unable to find the corresponding creation file... I'm not familiar with html/css/javascript but since I know LaTeX and C++ assumed I would be able to find my way around the creation files - seems that is not the case since I'm lacking the understanding how the creation process works :oops:
In MyFancyIndex.html is a reference to FancyIndexDetails.html which is nowhere to be found on my system. :?:

So, could you please tell me how/where I can modify the secondary details export?


PS:
The sorting by title only ignores "the" and "a" at the beginning of titles - I've included some more articles in fi.shared.js. In case someone wants to do the same: it's line 92 ff., the file is in Images/MyFancyIndexImages. Insert something like:
else if (s.substr(0,4).toLowerCase() === "der ") { return s.substr(4).toLowerCase(); }
else if (s.substr(0,4).toLowerCase() === "die ") { return s.substr(4).toLowerCase(); }
else if (s.substr(0,4).toLowerCase() === "das ") { return s.substr(4).toLowerCase(); }
else if (s.substr(0,4).toLowerCase() === "ein ") { return s.substr(4).toLowerCase(); }
else if (s.substr(0,3).toLowerCase() === "la ") { return s.substr(4).toLowerCase(); }
else if (s.substr(0,3).toLowerCase() === "le ") { return s.substr(4).toLowerCase(); }
else if (s.substr(0,4).toLowerCase() === "les ") { return s.substr(4).toLowerCase(); }
else if (s.substr(0,3).toLowerCase() === "un ") { return s.substr(4).toLowerCase(); }
else if (s.substr(0,3).toLowerCase() === "el ") { return s.substr(4).toLowerCase(); }
(this is of course not comprehensive, but covers all occurrences in my collection ;) )

It would be nice if future versions of the template could contain expanded lists :)
marumari
Addicted to Bruji
Addicted to Bruji
Posts: 104
Joined: Thu Dec 10, 2009 10:38 am
Contact:

Re: Modifying Secondary Details of MyFancyIndex

Post by marumari »

Conor went through how to modify the extra detail page, here.

I have thought about expanding the list to include foreign articles, but I am slightly nervous about screwing up the sorting of something like "Die Hard".
Black Smurf
Addicted to Bruji
Addicted to Bruji
Posts: 30
Joined: Mon Mar 26, 2007 11:15 am
Location: Germany

Re: Modifying Secondary Details of MyFancyIndex

Post by Black Smurf »

Thanks for the link - I hadn't found that thread. :)

Alas, I didn't find the crucial hint there: Where do I find the file FancyIndexDetails.html? It's not in ~/Library/Application Support/DVDpedia/Templates or any of its sub-folders and Spotlight doesn't find it.
I surmise it has to be somewhere on my system since the export is working...

Edit:
Oh - and thank you for creating the template in the first place, it's great!
marumari
Addicted to Bruji
Addicted to Bruji
Posts: 104
Joined: Thu Dec 10, 2009 10:38 am
Contact:

Re: Modifying Secondary Details of MyFancyIndex

Post by marumari »

If you right-click on the *Pedia icon in your Application's folder and choose "Show Package Contents", you'll find it under Contents > Resources > Templates. You can either edit it right there or copy it to your personal Templates folder (recommended).
Black Smurf
Addicted to Bruji
Addicted to Bruji
Posts: 30
Joined: Mon Mar 26, 2007 11:15 am
Location: Germany

Re: Modifying Secondary Details of MyFancyIndex

Post by Black Smurf »

Ah, there it is!

Thank you for the hint :)
User avatar
Conor
Top Dog
Posts: 5345
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: Modifying Secondary Details of MyFancyIndex

Post by Conor »

The "edit" button from the export was not bringing along the details page for customization since it would have required a few extra steps to change the name inside the original template for the details to "MyFancyIndexDetails.html". But I have added that feature for the next version to avoid this confusion.

Also for ignoring non-english articles you might want to look at the version that I created for another user that is just slightly more optimized, by avoiding repeated calls to the substring and lowercase functions.
Black Smurf
Addicted to Bruji
Addicted to Bruji
Posts: 30
Joined: Mon Mar 26, 2007 11:15 am
Location: Germany

Re: Modifying Secondary Details of MyFancyIndex

Post by Black Smurf »

Conor wrote:The "edit" button from the export was not bringing along the details page for customization since it would have required a few extra steps to change the name inside the original template for the details to "MyFancyIndexDetails.html". But I have added that feature for the next version to avoid this confusion.
That will really be handy for people trying to modify the template for the first time (I had modified the template I used before, of course - but in that case all relevant files could be found by clicking the "edit" button and exploring the sub-folders of the folder it opened... which actually added to my confusion when that didn't work for the FancyIndex).
Conor wrote:Also for ignoring non-english articles you might want to look at the version that I created for another user that is just slightly more optimized, by avoiding repeated calls to the substring and lowercase functions.
Nice. Thanks for the link :)
Post Reply