I've done a search of the forums for an answer to this, and found a couple of answers that look like they should work, but so far I've not had any joy with this issue.
Long story short, My site is split into several different sections (listed as the main navigation across the top of the page). Within any one section, I want the side navigation to show the 2nd and 3rd levels of links within that section.
So far so good, this is working just fine thanks to the following code:
The issue I'm having is that one of the sections on the site has a hell of a lot of level 2 and level 3 links, so when within that section, I only want the level 2 links to display.
I figured that seeing as this section is going to be using custom page types, I would be able to test for the page type, and disable the 3rd level from displaying, i.e.:
<% if $ClassName = "CourseBase" %>
// don't show anything
<% else %>
// display 3rd level links
<% end_if %>
(and a couple of variations of this) But it just isn't working.
Can anyone help me out?