Dutchie
New Member
Music lover par excellence
Posts: 5
|
Post by Dutchie on Jun 19, 2023 15:55:19 GMT
Hi every one,
I've been using CATraxx now for a very, very long time and customized (mainly translated) most of the templates. About fourteen years ago Country flags were introduced (I think it was Dave/LotsOcds) and I was wondering if anyone can help me with that.
I would like to have a shortcut on the index template to a full list of countries being used in CATraxx preferably with a folder lay out and the possibility to click on the country name to see what artists/persons are born in that specific country and which albums are being produced in that specific country (same information as in the custom views but in a - let's say - smoother way).
I think at the time this was one of the many examples to use country flags but this information got lost somehow.
You're help is much appreciated.
Thnx and rgds,
Chris.
|
|
|
Post by gordonk on Jun 20, 2023 0:12:49 GMT
Chris, I think you will find it was Thomas Hamstrup who packaged it as part of his birthdates Package. (one of the HAP data files) I cannot immediately find his EMail address (he was pretty active on the previous forum) and am a bit poor for time to look now. Someone else (Dave?) might know. I do have the file of flag jpg's if that is any help, I can email it if it helps,
Gordon Kimpton
|
|
Dutchie
New Member
Music lover par excellence
Posts: 5
|
Post by Dutchie on Jun 20, 2023 15:32:14 GMT
Hi Gordon, thanks for your quick reply. The file with flag jpg's and most of the customisations I do have and it all works fine. I just need some help with a particular idea of which I thought I also had the information for the templates but that seems to be missing now. So I am looking for someone with more knowledge than me to make customized templates related to the aformentioned country flags.
|
|
|
Post by gordonk on Jun 21, 2023 7:28:33 GMT
Chris, above my pay grade I am afraid. Thomas was very strong in this area. I tried to message him on Facebook but no reply. You will find him on Facebook so you can always try there. Good luck
Gordon Kimpton
|
|
|
Post by gordonk on Jun 21, 2023 7:29:18 GMT
Chris, above my pay grade I am afraid. Thomas was very strong in this area. I tried to message him on Facebook but no reply. You will find him on Facebook so you can always try there. Good luck
Gordon Kimpton
|
|
wolf
New Member
Posts: 6
|
Post by wolf on Jul 11, 2023 11:56:12 GMT
Hi Chris, did you mean this? Attachments:

|
|
Dutchie
New Member
Music lover par excellence
Posts: 5
|
Post by Dutchie on Jul 11, 2023 12:28:47 GMT
Hi Wolf, Great to meet you (again)  This is exactly what I mean! I'm especially interested in how to get the CountryList shortcut on the home page (Explorer View) and what template needs to be added or edited. What code do I use on what template? BTW I like the use of the flag icon on the home page also. Thanks in advance. rgds, Chris
|
|
wolf
New Member
Posts: 6
|
Post by wolf on Jul 15, 2023 15:10:06 GMT
Hi Chris, insert this code in the index.xsl after the Play History entry. <td width="100%"><img class="index_image" src="de.gif"/><A HREF="CountryList.xsl?Country=*" TARGET="_BLANK">CountryList</A></td> Then you need CountryListxsl in the explorer template. I attache the xsl.
I hope it works Attachments:CountryList.xsl (2.82 KB)
|
|
|
Post by gordonk on Jul 21, 2023 3:26:11 GMT
Hi Wolf, I have got most of the way in implementing this but I have a problem getting the flag against the entry in Explorer. (you use DE.gif) now I have a file of flags (gifs) but using that as the source does not work for me. I see in countrylist.xml you call : <xsl:value-of select="document('flagicons/flags.xml')/data/country[@name=$_country]/ISO_3166-1_alpha-2"/> . Is it that document I am missing and, could I have it please and advice on where to store it?
thanks
Gordon K
Have worked it out and all is working now. Good exercise!
|
|
Dutchie
New Member
Music lover par excellence
Posts: 5
|
Post by Dutchie on Jul 27, 2023 15:01:16 GMT
Hi Wolf,
I've got it working fine now!
Thanks again.
|
|