solved Adding Lyrics and Song Notes to Song Pages

MySong
MySong
@mysong
10 years ago
155 posts
Using the 'form designer' on the 'song upload' page, I added two new fields; 'lyrics' and 'song notes'. After this I was able to add this data to all the songs.

Question is how to get this data to show up on the template in the front end of the site on the song page?

Thanks for the help.
updated by @mysong: 07/03/14 06:36:52PM
michael
@michael
10 years ago
7,714 posts
if you created song_lyrics in the form designer, then there will now be a song_lyrics variable available in the in the item_details.tpl file

so go into the template editor for the jrAudio module in the ACP and add in {$item.song_lyrics} where you want to put it.

You will see others around that area that look like {$item.song_title} etc.
MySong
MySong
@mysong
10 years ago
155 posts
In ACP > Audio Support > Templates > item_detail.tpl

I added the following line

{jrCore_lang module="jrAudio" id="95" default="lyrics"}: <a href="{$item.audio_lyrics}
updated by @mysong: 06/02/14 06:47:48AM
MySong
MySong
@mysong
10 years ago
155 posts
It is not letting me add the code so here is a snapshot...
code.jpg
code.jpg  •  722KB


updated by @mysong: 06/02/14 06:50:44AM
MySong
MySong
@mysong
10 years ago
155 posts
it is not showing up on front end. I just made up an 'id' (95) since I was not sure where to get that data from, if that makes a difference.

Thanks for the help.
MySong
MySong
@mysong
10 years ago
155 posts
Sorry my mistake, had an extra piece of code in there that was ruining it.
Removed it and now it is working fine.

Thanks,
michael
@michael
10 years ago
7,714 posts
nice. :)