Sommaire |
[modifier] Description
It displays the album list of the marvellous artist Allison Crowe that i discovered on the Jamendo's website
[modifier] Tag mediawiki
<Jamendo profile="Artist" howMany="all">allison.crowe</Jamendo>
[modifier] CSS
img.jamendo {
padding:10px;
margin:2px;
border: 1px;
border-color: #0831A8;
border-style:solid;
-moz-border-radius-topright: 4px;
-moz-border-radius-topleft: 4px;
-moz-border-radius-bottomright: 4px;
-moz-border-radius-bottomleft: 4px;
background-color: #84AFD7;
}
[modifier] Configuration
Jamendo::$Configs["Default"]=array( 'PopupParameters' => ", 'width=420,height=340,resizable=no,copyhistory=no,fullscreen=no,toolbar=no,location=no,directories=no,menubar=no,status=no,scrollbars=no,left=20,top=30'", 'Target' => "jamendo", 'ScriptBaseUrl' => "/Jamendo/JamendoPopup.php", 'HasTable' => true, 'TableClass' => '', 'TableCols' => 5, 'HasDiv' => false, 'DivClass' => '', 'LinkClass' => '', 'ImgClass' => 'jamendo', 'CoverWidth' => '100', 'ErrorCover' => "<a href=\"http://www.jamendo.com\" style='text-decoration:none;'><img src=\"http://img.jamendo.com/logo/logo1-fr.png\" width=\"100\" /></a>" );
[modifier] Profile
Jamendo::$Profiles['Allison Crowe']=array( 'type' => 'ArtistAlbumRequest', 'what' => 0, 'howMany' => "all", 'order' => 4, 'direction' => FALSE, 'option' => 'allison.crowe');
[modifier] Code PHP
$coverDisplay=new JamendoDisplayCover();
echo $coverDisplay->displayAlbumCoversFromProfile("Allison Crowe","all",$wgLanguageCode);
[modifier] Another solution
Using the option field you can use one profile to display all the artists
[modifier] Profile
Jamendo::$Profiles['Artist']=array( 'type' => 'ArtistAlbumRequest', 'what' => 0, 'howMany' => "all", 'order' => 4, 'direction' => FALSE, 'option' => '');
[modifier] Code PHP
$coverDisplay=new JamendoDisplayCover(); $profile="Artist"; Jamendo::setProfileOption($profile,"allison.crowe"); echo $coverDisplay->displayAlbumCoversFromProfile($profile,"all",$wgLanguageCode,Jamendo::getProfileOption($profile));
