HowTo
HOWTO: Einbau von Headline Tags in joomla 1.0.x | HOWTO: Einbau von Headline Tags in joomla 1.0.x |
|
Um den Inhalt für die Robots besser darzustellen sind Headline-Tags sehr wichtig, joomla / Mambo unterstützt dies nicht automatisch, darum hier ein kleiner Hack: Die Headline Tags werden in unter ../components/com_content/content_html.php eingebaut. Zum Beispiel für die Überschriften von Artikeln. * Writes Title */ function Title( &$row, &$params, &$access ) { if ( $params->get( 'item_title' ) ) { if ( $params->get( 'link_titles' ) && $row->link_on != '' ) { ?> <td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%"> <a href="<?php echo $row->link_on;?>" class="contentpagetitle<?php echo $params->get( 'pageclass_sfx' ); ?>"> <h1><?php echo $row->title;?></h1></a> <?php HTML_content::EditIcon( $row, $params, $access ); ?> </td> <?php } else { ?> <td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%"> <h1><?php echo $row->title;?></h1> <?php HTML_content::EditIcon( $row, $params, $access ); ?> </td> <?php } } else { ?> <td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%"> <?php HTML_content::EditIcon( $row, $params, $access ); ?> </td> <?php } } Und dann in der .css Datei des aktiven Templates noch die Einstellungen für h1, h2, h3 festlegen: h2 { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size: 14px; padding-top: 0px; display:block; } h3 { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size: 12px; padding-top: 0px; display:block; } h1, .contentheading, .contentpagetitle, a.contentpagetitle:link, a.contentpagetitle:active, a.contentpagetitle:visited { font-family: Arial, Helvetica, sans-serif; font-size:16px; color:#3973AC; font-weight: bold; padding-top: 0px; background-color:inherit; display:block; } In diesem Bespiel wurde die Definition für <h1> einfach der .contentheading, da ja hier verwendet, hinzugefügt. » Kommentar schreiben
» Keine Kommentare
Es gibt bisher noch keine Kommentare.
|
| < zurück | weiter > |
|---|