0
Hi,
I'm using Music Collection component to make a site for my client. I want to be able to display Artists like on the attached picture.
I'm not a programmer but I understand and can change bits of PHP. The design it self doesn't matter, I can do that on my own, all I'm interested is logic.
I want to display all artists, from all letters, but to somehow label when for example letter A ends and letter B begins, something like in the picture above. I just need new letter echoed when there is change between letter A and B for example.
I would be very grateful if someone could help me with this.
Thanx in advance
Ivan
I'm using Music Collection component to make a site for my client. I want to be able to display Artists like on the attached picture.
I'm not a programmer but I understand and can change bits of PHP. The design it self doesn't matter, I can do that on my own, all I'm interested is logic.
I want to display all artists, from all letters, but to somehow label when for example letter A ends and letter B begins, something like in the picture above. I just need new letter echoed when there is change between letter A and B for example.
I would be very grateful if someone could help me with this.
Thanx in advance
Ivan
Responses (5)
-
Accepted Answer
0well, you can use the ARISTS view to achieve this.
first of all, on MC paramters, choose
show artists on MC home -> YES
use pagination in artists view -> NO
and make a menu item of type "Music Collection -> Artists"
chose also "default view" for "view for artists list" parameter, not "detailed".
now what you get is a list of all artists, ordered by letter, but without the capital letters being printed out, as you want.
to make this, you'll need some extra PHP coding
the file that prints this data is
/components/com_muscol/views/artists/tmpl/default.php
all you have to do, is you know some PHP, is to make the letters be printed out when the letter changes
(it should not be very difficult if you have some PHP skills... just check the capital letter of the artist that is being printed, compare with the capital letter of the previous artist, and if its different, print it)
do U understand?
Germi -
Accepted Answer
0I understand everything you said, but as I said I'm not a programmer, I can understand PHP but can't exactly write it. Also, I did everything you said before I even wrote that post, I know that default.php is the file that displays the artists. That is all perfectly understandable to me.
If I'm not mistaken the code that writes out list of artists starts on line cca.78 in /components/com_muscol/views/artists/tmpl/default.php
Could you please tell me what to write there to get the desired effect?
Thank you in advance
Ivan -
Accepted Answer
0replace the file for this one
[file name=default-20091119.zip size=1539]http://www.joomlamusicsolutions.com/images/fbfiles/files/default-20091119.zip[/file] -
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »