Lyrics in album page Task

0
Hi, Germinal!


On the song page of lyrics text is displayed as

<?php echo $this->song->lyrics; ?>


and it works fine

Any Song Page

I want to be able to see the lyrics on the album pages, too,


I decided to add a bit of code into a template song /components/com_muscol/templates/template_song.php.

When you click on the "glyphicon-eye-open" opens lyrics.

Faced with such a problem when encoding.

But this code
<?php echo $this->song->lyrics; ?>
does not work for the album page.


Works {{lyrics}}


The text displayed in the text (), ie, with all tags

,

, ,
etc.


Example: Any Album Page

Tell me how to get it in the html (), without the tag?

--
Sincerely, Igor
Thank you in advance
Responses (2)
  • Accepted Answer

    Monday, January 16 2017, 10:44 AM - #Permalink
    0
    to get HTML output you need to use TRIPLE curly braces instead of double:

    {{{lyrics}}}

    not {{lyrics}}
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 16 2017, 11:03 AM - #Permalink
    0
    Thank you very much, it works great!
    The reply is currently minimized Show
Your Reply