Artists display (a little bit different)

Aperte
Aperte
Offline
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.

http://www.joomlamusicsolutions.com/images/fbfiles/images/izvodjaci_T.jpg

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
Attachments:
Responses (5)
  • Accepted Answer

    Thursday, November 19 2009, 02:32 PM - #Permalink
    0
    well, 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
    The reply is currently minimized Show
  • Accepted Answer

    Aperte
    Aperte
    Offline
    Thursday, November 19 2009, 03:26 PM - #Permalink
    0
    I 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
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 19 2009, 04:36 PM - #Permalink
    0
    replace the file for this one
    [file name=default-20091119.zip size=1539]http://www.joomlamusicsolutions.com/images/fbfiles/files/default-20091119.zip[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Aperte
    Aperte
    Offline
    Thursday, November 19 2009, 04:57 PM - #Permalink
    0
    Hey,

    thanks germi, that is exactly what I needed. I will style it tomorrow, I think there won't be any problems with that.

    I've put SOLVED in the subject.

    Thanks again for this super fast response. Great component BTW.

    Best regards.

    Ivan
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 19 2009, 04:59 PM - #Permalink
    0
    no problem. glad to help :)

    thanks for the compliment

    Germi
    The reply is currently minimized Show
Your Reply