weiß wer wie ich in zb. home -> was ist contenido eine navigation hinbekomme wo mich mittels nächste vorherige kategorie button zwischen den kategorien in "was ist contenido" switchen lässt?
ich hoffe das ist zum mitkommen

danke, oli
Code: Alles auswählen
<?
cInclude("frontend", "includes/functions.navigation.php");
$parentNav = createNavigationArray(getParent($_GET["idcat"],$db),$db);
function getPrevNext($array) {
reset($array);
$arrSize = count($array);
for ($i = 0; $i <= $arrSize; $i++) {
if(key($array)==$_GET["idcat"]) {
$next = next($array);
if($next) {
echo '<a href="front_content.php?idcat='.$next["idcat"].'"><img src="images/arrow-next.gif" border="0" /> NÄCHSTE SEITE</a>';
}
break;
} else {
next($array);
}
}
if($next) {
echo " ";
}
reset($array);
$arrSize = count($array);
for ($i = 0; $i <= $arrSize; $i++) {
if(key($array)==$_GET["idcat"]) {
$prev = prev($array);
if($prev) {
echo '<a href="front_content.php?idcat='.$prev["idcat"].'"><img src="images/arrow-prev.gif" border="0" /> VORHERIGE SEITE</a>';
}
break;
} else {
next($array);
}
}
}
getPrevNext($parentNav);
?>