What would I do in this case, if I didn't want to edit my main template, but instead wanted to add new css, such as .roweven and .rowodd for alternating rows. The following code tells the mablog which id to chose, but I want it use use my new css attributes.
[code:1] if($mosConfig_hits) {
$return .= "<th>".$this->_writeSortByLink($pagingParams,"entries_","hits",_UE_ARTICLEHITS)."</th>";
}
$return .= "</tr>";
$i = 2;
foreach($items as $item) {
if (is_callable( array( $mainframe, "getItemid" ) ) ) {
$itemid = $mainframe->getItemid( $item->id );
} elseif (is_callable( "JApplicationHelper::getItemid" ) ) {
$itemid = JApplicationHelper::getItemid( $item->id );
} else {
$itemid = null;
}
$itemidtxt = $itemid ? "&Itemid=" . (int) $itemid : "";
$i = ($i==1) ? 2 : 1;
$return .= "<tr class=\"sectiontableentry$i\"><td><a href=\"".$artURL.$item->id.$itemidtxt."\">".$item->title."</a></td>"
. "<td>".mosFormatDate($item->created)."</td>";
if($mosConfig_hits) $return.= "<td>".$item->hits."</td>\n";
$return .= "</tr>\n";
}[/code:1]
Does anyone knowhow to acheive this?