solved Adding Lyrics to Song Pages (pop-out from link)

Ken Rich
Ken Rich
@ken-rich
8 years ago
926 posts
I've been asked how to add written lyrics to songs.

My suggestion would be a place in the upload form where lyrics can optionally be added, and "IF" they are added, a link is created under the song's player that says Lyrics. If clicked, the lyrics are displayed in a "pop-out" window.

Can someone incorporate that into the Ningja skin, because it seems like a good idea but is beyond my ability to implement.


--

Ken Rich
indiegospel.net

updated by @ken-rich: 06/10/16 01:25:55AM
paul
@paul
8 years ago
4,326 posts
Use the Form Designer to add a textarea field to the Audio create and update forms - call it 'audio_lyrics', say, then in the Audio item_detail.tpl template -

{if strlen($item.audio_lyrics) > 0}
     {$item.audio_lyrics}
{/if}
hth


--
Paul Asher - JR Developer and System Import Specialist
Ken Rich
Ken Rich
@ken-rich
8 years ago
926 posts
Hi Paul,

I'll try that in my development site and see how it works out. Thanks.


--

Ken Rich
indiegospel.net
Ken Rich
Ken Rich
@ken-rich
8 years ago
926 posts
Thanks Paul - it took me a while to carve out some time to test this but it works.

I actually found adding an editor rather than a test area worked better because it preserves the formatting when lyrics are pasted in, and it allows for linking to lyrics easily.

If there is a downside I haven't seen it yet.


--

Ken Rich
indiegospel.net
paul
@paul
8 years ago
4,326 posts
Cool - Glad its sorted.


--
Paul Asher - JR Developer and System Import Specialist