0
Hi..
I need to have a page with all lyrics of an album.
How can I do this?
I need to have a page with all lyrics of an album.
How can I do this?
Responses (11)
-
Accepted Answer
-
Accepted Answer
0Before my site was set as follows:
- Artist page with a list of his albums
- A page for each album that contained the list of tracks and all the lyrics for that album.
So some users of my site have asked me if it was still possible to have the lyrics divided by album.
Would it be possible to do this by making amendments to the Code of Music Collection? -
Accepted Answer
0sure, all can be done making amendements to he code. in fact in this case is quite simple: in your case, we already loaded al lthe lyrics from the songs of an album into album's page. remember? to make the songs with no lyrics to have NO link... this is the thread where we discuted this:
http://www.joomlamusicsolutions.com/en/forum/suggestions/songs-on-keith-2.html#588
so, all you have to do is open components/com_muscol/views/album/tmpl/default.php
from line 93 to line 114 there is the bucle where all the songs are printed.
to print the lyrics of the song, just remember that the lyrics are located on the variable $song->lyrics
easy, huh?
I hope this is what you want -
Accepted Answer
0Thanks Germi.
I think I have understood everything .. I think it easy to do. But I want to create another page so I can leave both the separate texts that give the possibility to have all the lyrics of an album in another page. I would like to put a link on the page of an album that takes for example the all-lyrics.html page where you can find all the texts together. Do you think you can do so? I will make you know in a few days if I could make the changes because at the moment I can not. -
Accepted Answer
-
Accepted Answer
0ok, let's try it, step by step
1 - copy the file components/com_muscol/views/album/tmpl/default.php and paste it in the SAME FOLDER renaming it to.... "all_lyrics.php", for instance
2 - open this new file "all_lyrics.php". The loop of the songs is in line 87 (or near it). add the "echo $song->lyrics" sentence wherever you want it to show up. Remove all the info you DONT want to show up in this "only lyrics" page (for instance, album review, etc). I'm saying all this in a quick way, because I think you quite understand the structure of the file, right?
3 - open the original default.php file and add this sentence wherever you want the link to the "only lyrics" page to be (inside php tags!):
$lyrics_link= JRoute::_( 'index.php?option=com_muscol&view=album&id='. $this->album->id . '&layout=all_lyrics' . $itemid);
and then this (outside php tags!):
View all lyrics of this album
sorry for the blankspace, remember to not add those (is just that if I write the sentence the way it is, the forum clean strings script is gonna delete it)
I think thats it!
tell me if you understand and if it works -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0uf.. I cant tell you all the exact changes...
basically these are:
- new button to download full album
- new button to link to an external page to buy the album
- new button to link to an external page to buy each song
- the link to download the songs has been improved
- new hits counter at the bottom of the page
- new call to JomComment system i enabled
- new footer "Powered by Music Collection"
and maybe something else...
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 »