Get artist picture

0
Good day!

I am trying to write a code to display on album page the artist image.
I tried
echo MusColHelper::image(MusColHelper::getArtistThumbnailSrc($this->artist->picture, $this->artist->artist_name, $this->params->get('thumb_size_artist_profile',200), array("class" => "artist_picture_profile span12")));

and

echo MusColHelper::createThumbnailArtist($this->artist->picture, $this->artist->artist_name, $this->params->get('thumb_size_artist_profile',200), array("class" => "artist_picture_profile span12"));

but this doesn't displays it. I check other rendering functions but not successful. Any suggestions to get it?

Accepted Answer

Thursday, July 10 2014, 02:02 PM - #Permalink
0
Nevermind i figured it out.
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    Thursday, July 10 2014, 01:21 PM - #Permalink
    0
    Whatever i tried it shows an empty image.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, July 10 2014, 01:48 PM - #Permalink
    0
    you are trying to use this but you're using $this->artist which is a variable that does not exist in that page..!
    the fact that there is $this->album doesn't mean there is $this->artist...
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, July 10 2014, 01:50 PM - #Permalink
    0
    Yeah, i figured that out, but i still can't get the image because the function doesn't exists after i searched into the code. It does, but not for the albums page.
    The reply is currently minimized Show
Your Reply