Could anyone please help me how to do this? Many thanks!<server language="perl"> print "<div id=\"maincontent\">"; #<!-- LEFT --> print"<div id=\"left\">"; if ($item{itemtypeid} =~ '2572100') { print qq(<span class="sectionBack">< <a href="/">Home</a></span>); print "<ul class=\"sectionNav\">\n"; print str_links(undef, '<li><a href=$url>$name</a></li>\n', 1, 'order' +, 'sortnumeric'); print "</ul>\n"; } else { my $sectionurl = "/" . substr(str_primaryattachpoint(), 1, index(str_p +rimaryattachpoint(), '/', 1)); my $sectionurl2 = str_primaryattachpoint(); my $sectionurl3 = str_primaryattachpoint($sectionurl2); my %section = getitem($sectionurl3, 0); print "<div id=\"leftnav\">"; my $parentlink = str_primaryattachpoint(); my $linkslist = str_links($parentlink, '$path,$name,$itemid:', 1, 'ord +er', 'sortnumeric'); my @topvariables = split(/:/, $linkslist); my $count = @topvariables; my $int = '0'; while ($int < $count) { foreach my $topvariables (@topvariables) { (my $link, my $title, my $id) = split(/,/, $topvariables); $topvariables[$int] = ([$link, $title, $id]); $int++; } } my $parentslink = str_previousbranch(); my $int2 = '0'; print "<ul class=\"sectionNav\">\n"; foreach (@topvariables) { #print $topvariables[$int2][2]. "<br>"; #print $item{itemid} . "<br>"; if ($topvariables[$int2][2]=~$item{itemid}) { print "<li><a class=\"currentpage\" href=\"$topvariables[$int2][0]\">$ +topvariables[$int2][1]</a>\n"; print "<ul class=\"submenu\">\n"; print str_links($topvariables[$int2][0], '<li class=\"nav2\"><a href=\ +"$path\" class=\"submenu\">$name</a></li>\n', 1, 'order', 'sortnumeri +c'); print "</ul></li>\n"; } else { print "<li><a href=$topvariables[$int2][0]>$topvariables[$int2][1]</a> +</li>\n"; print "<ul style='display:none;'>\n"; print str_links($topvariables[$int2][0], '<li class=\"nav2\"><a href=$ +url>$name</a></li>\n', 1, 'order', 'sortnumeric'); print "</ul></li>\n"; } $int2++; } print "</ul>\n"; } </server>
In reply to Excluding pages from the navigation by webteam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |