Ok Ingo, man lernt nie aus... Jedoch bekomme ich das Script irgendwie nicht zum laufen, was mache ich falsch? Im Head habe ich das Teil eingebunden, am Ende des Body den anderen kram. Aber irgendwie ändert der bei mir nichts. Hier mal das Template:
Code: Alles auswählen
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<?php echo $REX['SERVER']; ?>" />
<title><?php echo rexseo::title(); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="<?php echo rexseo::keywords(); ?>" />
<meta name="description" content="<?php echo rexseo::description(); ?>" />
<meta name="robots" content="index,follow,noodp,noydir" />
<meta name="language" content="de,de-at,de-ch" />
<meta http-equiv="Content-Language" content="de,de-at,de-ch" />
<meta http-equiv="pragma" content="NO-CACHE" />
<meta http-equiv="cache-control" content="NO-CACHE" />
<link rel="canonical" href="<?php echo rexseo::canonical(); ?>" />
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
<div id="content-wrapper">
<div id="navigation"><?php
$nav = rex_navigation::factory();
echo $nav->get(2,1,FALSE,TRUE);
?></div>
<div id="subnavigation"><?php
$nav = rex_navigation::factory();
echo $nav->get(0,3,FALSE,TRUE);
?></div></div>
<script>
$(function () {
$('.rex-navi1 li').each(function () {
if(!$(this).children('ul').length) {
$(this).addClass('no_children');
}
});
});
</script>
</body>
</html>