Hallo zusammen,
wie setzt man eine Meta-Navigation in Redaxo um?
Ich habe leider über die Suchfunktion und bei google keine Hilfe gefunden.
Es wäre toll, wenn mir hier jemand helfen könnte!
Vielen Dank schon mal im Vorraus!
REX_LINKLIST_BUTTON[1]<?php
if($REX['REDAXO'] != '1') {
echo '<ul class="metanavi">'."\r\n";
$zaehler = 0;
$aktiv = '';
$first = '';
$aktuelleArtikelID = $REX['ARTICLE_ID'];
$arr = explode(',','REX_LINKLIST[1]');
foreach ($arr as $value)
{
$article = OOArticle::getArticleById($value);
if(is_object($article))
{
if ($zaehler == 0) {
$first = 'class="first"';
} else {
$first = "";
}
$zaehler = 1;
if ($aktuelleArtikelID == $value) {
$aktiv = 'class="aktiv"';
} else {
$aktiv = '';
}
echo '<li '.$first.'><a '.$aktiv.' href="'.rex_getUrl($value, $REX['CUR_CLANG']).'" title="'.$article->getName().'">'.$article->getName().'</a></li>'."\r\n";
}
}
echo '</ul>'."\r\n";
} else {
echo '<ul>'."\r\n";
$arr = explode(',','REX_LINKLIST[1]');
foreach ($arr as $value)
{
$article = OOArticle::getArticleById($value);
if(is_object($article))
{
echo '<li>'.$article->getName().'</li>'."\r\n";
}
}
echo '</ul>'."\r\n";
}
?><?php
// ------ DESCRIPTION/KEYWORDS
$OOStartArticle = OOArticle::getArticleById($REX['START_ARTICLE_ID'], $REX['CUR_CLANG']);
$meta_beschreibung = $OOStartArticle->getValue("art_description");
$meta_suchbegriffe = $OOStartArticle->getValue("art_keywords");
if($this->getValue("art_description") != "")
$meta_beschreibung = $this->getValue("art_description");
if($this->getValue("art_keywords") != "")
$meta_suchbegriffe = $this->getValue("art_keywords");
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php print $REX['SERVERNAME'].' | '.$this->getValue("name"); ?></title>
<meta name="keywords" content="<?php print htmlspecialchars($meta_suchbegriffe); ?>" />
<meta name="description" content="<?php print htmlspecialchars($meta_beschreibung); ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo $REX['HTDOCS_PATH'] ?>files/main.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $REX['HTDOCS_PATH'] ?>files/navigation.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $REX['HTDOCS_PATH'] ?>files/content.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $REX['HTDOCS_PATH'] ?>files/solacom.css" media="screen" />
</head>
<body>
<div class="wrapper">
<div class="header">
<div class="logo">
<a href="<?php echo $REX['HTDOCS_PATH'] ?>index.php" title="Zurück zur Startseite"><img src="./files/logo.gif" /></a>
</div>
<div class="meta">
REX_ARTICLE[ctype=3]
</div>
</div>
REX_TEMPLATE[5]
<div class="content">
<div class="left">
REX_ARTICLE[ctype=1]
</div>
<div class="right">
REX_ARTICLE[ctype=2]
</div>
</div>
</div>
</body>
</html>
Zurück zu Templates/Navigationen [R4]
Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast