Hi Markus,
The second way is how I've tried to do it. I'm assuming the logic you
mention should be in the navigation template, but I don't know how
you'd use a variable without using some ASP which gets processed after
render tags.
What I've tried doing is something like (selected template):
<reddot:cms>
<if>
<query valuea="Context:CurrentDepth" operator="lt"
valueb="Context:CurrentPage.Elements.GetElement
(stf_StartNavigationLevel).Value">
<htmltext>
<navigation:nextlevel>
</htmltext>
</query>
<query type="else">
<htmltext>
<li class="current-page">
<a id="_<%!! Context:CurrentIndex.Id !!%>"
href="<%!!
Context:CurrentIndex.GetUrl() !!%>"><%!!
Context:CurrentIndex.Headline !!%></a>
</li>
</htmltext>
<if>
<query valuea="Context:CurrentIndex.HasChildren()"
operator="==" valueb="Bool:True">
<htmltext>
<li class="section-sub">
<ul>
<navigation:nextlevel>
</ul>
</li>
</htmltext>
</query>
</if>
</query>
</if>
</reddot:cms>
I can't seem to get an integer from stf_StartNavigationLevel. In
another post in the group, Context:Int.Parse
(CurrentPage.Elements.GetElement(stf_StartNavigationLevel).value) was
suggested but didn't work.
On Sep 29, 6:49 pm, markus giesen <[email protected]> wrote:
> Hi,
>
> you probably can go two ways:
> 1. Use theCurrentDepthrender tag to find out in which level you are
> and hide the parent pages below level X
> This only works when you always hide parent pages from a certain level
>
> 2. In the page you are showing set a standard field or option list
> element which you read out in the navigation templates.
> The variable in the page defines from which level you start showing
> navigation elements.
>
> That means:
> Entertainment - has opt_hidelevels set to 3
>
> Then the navigation are is rendered and every levels increses the
> cariable "currentLevel"
> When If currentLevel >= 3 Then
> show navigation
> End If
>
> On 30 Sep., 04:44, orangemoose <[email protected]> wrote:
>
>
>
> > Hi,
>
> > We're applying Navigation Manager to an existing project with a top
> > navigation menu and left sub navigation menu. The left navigation menu
> > is fairly standard, except we need the ability to arbitrarily set the
> > start index for the left navigation menu without impacting the
> > breadcrumb. The level(s) where the parent pages are hidden is not
> > consistent. The 'break point' could be one level deep or four levels
> > deep, so the start level and end level values don't seem to achieve
> > what we want. We have the 'non-hiding' menu built, but as you drill
> > deeper and deeper into the site, the left menu becomes unruly. How
> > would one go about setting up the navigation where you can specify
> > when to hide the parent pages?
>
> > For example, the left navigation structure could look like this:
>
> > -----------------------------------------------------
> > Breadcrumb: Home > Microsoft
>
> > Windows
> > Office
> > Downloads & Trials
> > Support
> > -----------------------------------------------------
>
> > ... you can drill down the site structure...
>
> > -----------------------------------------------------
> > Breadcrumb: Home > Microsoft > Windows
>
> > Windows
> > Windows 7
> > Windows Vista
> > Windows XP
> > Earlier Windows Versions
> > Office
> > Downloads & Trials
> > Support
> > -----------------------------------------------------
>
> > .. and here the left navigation drops the parent pages...
>
> > -----------------------------------------------------
> > Breadcrumb: Home > Microsoft > Windows > Windows 7
>
> > Windows 7
> > Features
> > Compare Editions
> > Get Windows 7
> > Using Windows 7
> > -----------------------------------------------------
>
> > ... you can drill down the site structure...
>
> > -----------------------------------------------------
> > Breadcrumb: Home > Microsoft > Windows > Windows 7 > Features
>
> > Windows 7
> > Features
> > Communication
> > Entertainment
> > Performance
> > Productivity
> > Safety & Security
> > Compare Editions
> > Get Windows 7
> > Using Windows 7
> > -----------------------------------------------------
>
> > ... you can drill down the site structure...
>
> > -----------------------------------------------------
> > Breadcrumb: Home > Microsoft > Windows > Windows 7 > Features >
> > Entertainment
>
> > Windows 7
> > Features
> > Communication
> > Entertainment
> > Gadgets
> > Games Explorer
> > Multiplayer Games
> > Play To
> > Windows Media Center
> > Windows Media Player 12
> > Performance
> > Productivity
> > Safety & Security
> > Compare Editions
> > Get Windows 7
> > Using Windows 7
> > -----------------------------------------------------
>
> > .. and here the left navigation drops the parent pages...
>
> > -----------------------------------------------------
> > Breadcrumb: Home > Microsoft > Windows > Windows 7 > Features >
> > Entertainment > Windows Media Center
>
> > Windows Media Center
> > Television
> > Music
> > Slide Shows
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/reddot-cms-users?hl=en
-~----------~----~----~----~------~----~------~--~---