Salve ragazzi.. mi servirebbe visualizzare la categoria di ogni notizia in home con uno sfondo "personalizzato".. in content ho modificato questo:
function Category( &$row, &$params ) {
if ( $params->get( 'category' ) ) {
?>
<span>
<?
if($row->category=="POLITICA"){
$stringa="<td bgcolor=\"#cd5843\">$row->category</td>";
} if($row->category=="REGIONE"){
$stringa="<td bgcolor=\"#d16552\">$row->category</td>";
} if($row->category=="ATTUALITA'"){
$stringa="<td bgcolor=\"#d87a69\">$row->category</td>";
} if($row->category=="OGGI"){
$stringa="<td bgcolor=\"#dd8c7d\">$row->category</td>";
} if($row->category=="TERRITORIO"){
$stringa="<td bgcolor=\"#e1998c\">$row->category</td>";
} if($row->category=="ITALIA"){
$stringa="<td bgcolor=\"#e4a498\">$row->category</td>";
} if($row->category=="CULTURE"){
$stringa="<td bgcolor=\"#e7aea5\">$row->category</td>";
} if($row->category=="SPETTACOLI"){
$stringa="<td bgcolor=\"#ebb9b1\">$row->category</td>";
} if($row->category=="SPORT"){
$stringa="<td bgcolor=\"#efc8c0\">$row->category</td>";
}
echo $stringa;
?>
</span>
<?php
}
}
solo che non entra in nessuno degli if.. ma se do un echo del $row->category mi stampa la categoria corretta!
Approfitto per chiedervi come posso fare per visualizzare prima la categoria della notizia e poi il titolo..