die content.php ist im prinzip nur zum code auslesen aus der db da die content.html.php is die ausgabe wenn du was änderst dann da.
hier hab ich mal teile von meinem code angehangen wie er auf http://w4sp.de in den news zu sehen ist
PHP-Code:
if ( $params->get( 'item_title' ) || $params->get( 'pdf' ) || $params->get( 'print' ) || $params->get( 'email' ) ) {
// link used by print button
$print_link = $mosConfig_live_site. '/index2.php?option=com_content&task=view&id='. $row->id .'&Itemid='. $Itemid .'&pop=1&page='. @$page;
?>
<table class="contentpaneopen<?php echo $params->get( 'pageclass_sfx' ); ?>">
<tr>
<td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%">
<?php
// displays Item Title
HTML_content::Title( $row, $params, $link_on, $access );
// displays PDF Icon
HTML_content::PdfIcon( $row, $params, $link_on, $hide_js );
// displays Print Icon
mosHTML::PrintIcon( $row, $params, $hide_js, $print_link );
// displays Email Icon
HTML_content::EmailIcon( $row, $params, $hide_js );
echo "</td><td><nobr>";
// displays Author Name
HTML_content::Author( $row, $params );
echo "</nobr><br><nobr>";
// displays Created Date
HTML_content::CreateDate( $row, $params );
echo "</nobr></td>";
?>
</tr>
</table>
<?php
} else if ( $access->canEdit ) {
// edit icon when item title set to hide
?>
<table class="contentpaneopen<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%">
<tr>
<td>
<?php
HTML_content::EditIcon( $row, $params, $access );
?>
</td>
</tr>
</table>
<?php
}
if ( !$params->get( 'intro_only' ) ) {
$results = $_MAMBOTS->trigger( 'onAfterDisplayTitle', array( &$row, &$params, $page ) );
echo trim( implode( "\n", $results ) );
}
$results = $_MAMBOTS->trigger( 'onBeforeDisplayContent', array( &$row, &$params, $page ) );
echo trim( implode( "\n", $results ) );
?>
<br><br>
<table class="contentpaneopen<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%">
<tr>
<td align='center' width="100%">
<?php
// displays Section & Category
HTML_content::Section_Category( $row, $params );
// displays Urls
HTML_content::URL( $row, $params );
?>
<br><br>
</td>
</tr>
<tr>
<td valign="top" colspan="2">
<?php
// displays Table of Contents
HTML_content::TOC( $row );
// displays Item Text
echo ampReplace( $row->text );
?>
</td>
</tr>
<tr>
<td colspan="2">
<?php
// displays Modified Date
HTML_content::ModifiedDate( $row, $params );
echo "<br>";
// displays Readmore button
HTML_content::ReadMore( $params, $link_on, $link_text );
?>
</td>
</tr>
</table>
<span class="article_seperator"> </span>
<?php
$results = $_MAMBOTS->trigger( 'onAfterDisplayContent', array( &$row, &$params, $page ) );
echo trim( implode( "\n", $results ) );
// displays the next & previous buttons
HTML_content::Navigation ( $row, $params );
// displays close button in pop-up window
mosHTML::CloseButton ( $params, $hide_js );
// displays back button in pop-up window
mosHTML::BackButton ( $params, $hide_js );
}
ist allerdings nur als anhaltspunkt gedacht wie du das persönlich bei dir löst musst probieren
Lesezeichen