How to add album review to song page?

0
Because most people don't enter details about individual songs the song pages are pretty much just a music player "bar" and social bookmark icons. I would like to add album details to the pages of all the songs that appear on that album. On the album page you can use:

[php start]
echo $this->album->review;
[php end]

to display the albums summary.

What do I need to add to the song page's default.php (and/or other file) to display the song's album details with the previous code?

Thanks.
Responses (4)
  • Accepted Answer

    Sunday, February 19 2012, 09:52 PM - #Permalink
    0
    well, first you would need to retrieve this info from the album's database.
    so you actually need to go to /models/song.php and on the MySQL that retrieves song data, you should request also the variable al.review

    then you can print it on the song page

    you know what I mean? you familiar with MySQL?
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, February 19 2012, 09:58 PM - #Permalink
    0
    Thanks! I believe I can handle that!
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, February 19 2012, 10:40 PM - #Permalink
    0
    Works perfectly! To /models/song.php I added:

    al.review as album_review


    Then, to /song/tmpl/default.php I added just above the song review:

    [php start]
    echo $this->song->album_review;
    [php end]


    Thanks again!
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, February 19 2012, 10:41 PM - #Permalink
    0
    that's it :) good work!
    The reply is currently minimized Show
Your Reply