Right, from your post your wanting

home
        site a
                page y (hidden)
                page z
        site b
                page y
                page z (hidden)

Is this correct? In the following code Im assuming your needing nested
ul/li and that your only trying to hide pages from the third level

If it is then for you homepage (level 1) you would need to use
something like this in the nav templates. (And put the first ul around
the Nav area
EG:
<ul><%!! Navigation:OutputArea(NavigationAreaName, Bool:True) !!%></
ul>


<!-- ----LEVEL 1 Selected  ---------
(dont need not selected as the home page is ALWAYS selected wherever
you are in the site.)
The following basically checks to see if the page your viewing is the
first page in teh structure (Home), if it is then output one bit of
code, if not then output another. This is used so you can put
differant css classes on if you need to. -->
<li>
<reddot:cms>
        <if>
                <query valuea="Context:CurrentIndex.Id" operator="=="
valueb="Context:LastIndex.Id">
                        <htmltext>
                                <!-- Or whatever code you want for the selected 
state -->
                                <li><a class="selected" href="<%!! 
Context:CurrentIndex.GetUrl() !!
%>"><%!! Context:CurrentIndex.Headline !!%></a>
                        </htmltext>
                </query>
                <query type="else">
                         <htmltext>
                                <!-- Or whatever code you want for the non 
selected state -->
                                <a href="<%!! Context:CurrentIndex.GetUrl() 
!!%>"><%!!
Context:CurrentIndex.Headline !!%></a>
                        </htmltext>
                </query>
        </if>
</reddot:cms>
<ul><navigation:nextlevel></ul>
</li>
<!-- ----LEVEL 1 Selected End --------- -->

<!-- ------LEVEL 2 Selected --------- -->
<li><a class="selected" href="<%!! Context:CurrentIndex.GetUrl() !!
%>"><%!! Context:CurrentIndex.Headline !!%></a>
<!-- The folowing means that there will not be leftover <ul> if there
are no children -->
<reddot:cms>
<if>
        <query valuea="Context:CurrentIndex.HasChildren()" operator="=="
valueb="Bool:True">
                <htmltext>
                        <ul>
                                <navigation:nextlevel>
                        </ul>
                </htmltext>
        </query>
</if>
</reddot:cms>
</li>
<!-- ------LEVEL 2 Selected --------- -->

<!-- ------LEVEL 2 Not Selected --------- -->
<!-- Not this just has the CSS class removed but you put in whatever
code you need -->
<li><a href="<%!! Context:CurrentIndex.GetUrl() !!%>"><%!!
Context:CurrentIndex.Headline !!%></a>
<!-- The folowing means that there will not be leftover <ul> if there
are no children -->
<reddot:cms>
<if>
        <query valuea="Context:CurrentIndex.HasChildren()" operator="=="
valueb="Bool:True">
                <htmltext>
                        <ul>
                                <navigation:nextlevel>
                        </ul>
                </htmltext>
        </query>
</if>
</reddot:cms>
</li>
<!-- ------LEVEL 2 Not Selected --------- -->

<!-- ------LEVEL 3 Selected --------- -->
<!--
The following assumes that in templates to be hidden that there is an
element called 'ShowInNavigationOptionList' (or whatever you choose),
with values true/false.
If you want a page to be hidden it has to be set to false. As its '!
=false' it will output all pages even those without the option list
(unless it has an option list set to false)
-->
<reddot:cms>
<if>
    <query
valuea="Context:CurrentPage.Elements.GetElement(ShowInNavigationOptionList).Value"
operator="!=" valueb="String:false">
                <htmltext>
                        <li class="selected"><a href="<%!! 
Context:CurrentIndex.GetUrl() !!
%>"><%!! Context:CurrentIndex.Headline !!%></a></li>
                </htmltext>
    </query>
</if>
</reddot:cms>
<!-- ------LEVEL 3 Selected --------- -->


<!-- ------LEVEL 3 Not Selected --------- -->
<!-- same as Level 3 selecetd but minus teh css class -->
<reddot:cms>
<if>
    <query
valuea="Context:CurrentPage.Elements.GetElement(ShowInNavigationOptionList).Value"
operator="!=" valueb="String:false">
                <htmltext>
                        <li><a href="<%!! Context:CurrentIndex.GetUrl() 
!!%>"><%!!
Context:CurrentIndex.Headline !!%></a></li>
                </htmltext>
    </query>
</if>
</reddot:cms>
<!-- ------LEVEL 3 NotSelected --------- -->



I hope this helps, If you have any questions please ask.
On Feb 23, 6:42 am, kimdezen <[email protected]> wrote:
> Tiffany,
>
> Is page y and page z under both site a and site b, based on the same
> page templates???
>
> If so, then the only way to hide them is if they are created from
> separate templates (one with master settings turned on, the other
> turned off) - or using the approach where you use some render tags to
> query each page for a flag/variable to hide or show the page based on
> where it sits within the site. Check out fred's post for more 
> info:http://www.reddotcmsblog.com/playing-peek-a-boo-hiding-pages-with-the...
>
> Cheers,
> Kim
>
> On Feb 23, 12:57 pm, Tiffany Portman <[email protected]>
> wrote:
>
>
>
> > Thanks you for the help! I noticed on my post I copied the same code twice
> > (oops).
>
> > Still having the same issue. Emily I do have both pages divided at the tree
> > and even made two seperate master page templates hoping that would do the
> > trick and Jian I made sure my navigation area properties has selected/not
> > selected applied and skipped the home page via nextlevel....still not sure
> > what the heck I'm doing wrong here
>
> >  *Page preview: *This is still what i'm seeing...ugh
> > home
> >    site a
> >       page y
> >       page z
> >    site b
> >       page y
> >       page z
>
> > this is what I want to see (exactly what I have on my project tree!)
>
> > *Tree: *(all template used are master pages)
> > home
> >    site a
> >       page y
> >    site b
> >       page z
>
> > *navigation area/nav template code:*
>
> >    - skip nav [<navigation:nextlevel>], properties: level 1 selected/not
> >    selected
> >    - level 1:properties: level 2 selected selected/not selected
> >    <ul>
> >    <li class=""><a href="<%!! Context:CurrentIndex.GetUrl() 
> > !!%>"><span><b><%!!
> >    Context:CurrentIndex.Headline >/b></span> </a>
> >                  <ul>
> >                <li class=""><navigation:nextlevel></li>
> >                  </ul>
> >        </li>
> >    </ul>
> >    - level 2 properties: level 3 selected selected/not selected
> >    <ul><li class=""><a href="<%!! Context:CurrentIndex.GetUrl() !!%
> >    >"><span><b><%!! Context:CurrentIndex.Headline !!%> </b></span> </a>
> >     </ul>
>
> >    thanks again for your help
>
> > On Tue, Feb 22, 2011 at 9:36 AM, emily stange <[email protected]> wrote:
> > > Hey Tiffany,
>
> > > I might have read this wrong, but if you don't yet have a dividing level 
> > > 2,
> > > Jian's solution won't work for you. You'll need your Smart Tree to look 
> > > like
> > > the following:
>
> > > Home
> > >    Dummy Page - Site A (Master Page)
> > >       Site A
> > >    Dummy Page - Site B (Master Page)
> > >       Site B
>
> > > Then follow everything he said.
>
> > > -Emily
>
> > >   On Mon, Feb 21, 2011 at 10:18 PM, Jian Huang 
> > > <[email protected]>wrote:
>
> > >>  Hi Tiffany,
>
> > >> Assuming that home is level 1 in your navigation structure, and level 3
> > >> pages should be displayed in your top navigation.
>
> > >> You really don't need level 1 not selected, you just need level 1 
> > >> selected
> > >> and ensure <navigation:nextlevel> is in the code.
>
> > >> Same thing again for level 2, you don't need level 2 not selected, you
> > >> just need level 2 selected and ensure <navigation:nextlevel> is in the 
> > >> code.
>
> > >> The reason you are getting pages from both sites is because in level 2 
> > >> not
> > >> selected, you have <navigation:nextlevel> in the code.  That means, even 
> > >> if
> > >> I am not browsing a page in this website, go ahead and crawl the next 
> > >> level.
>
> > >> I hope the limited info I have given helps.
>
> > >> -Jian
>
> > >> On Mon, Feb 21, 2011 at 7:54 PM, Tiffany Portman <
> > >> [email protected]> wrote:
>
> > >>> Hi all,
>
> > >>> I have a site that splits into two different sites after the home
> > >>> page:
>
> > >>> home
> > >>> choose site a
> > >>> choose site b
>
> > >>> they are both using the same templates and both are public they just
> > >>> show different content.
>
> > >>> the design is using just a top nav. I can get the pages to show up
> > >>> properly BUT I'm getting ALL the pages from BOTH site in the top nav.
>
> > >>> navigation templates:
> > >>> -----level 1 not selected (level 1 selected just has "current" adding
> > >>> to the class)-----
> > >>> <ul>
> > >>>    <li class=""><a href="<%!! Context:CurrentIndex.GetUrl() !!
> > >>> %>"><span><b><%!! Context:CurrentIndex.Headline !!%> </b></span> </
> > >>> a>
> > >>>            <ul>
> > >>>            <li class=""><navigation:nextlevel></li>
> > >>>            </ul>
> > >>>    </li>
> > >>> </ul>
> > >>> -----level 2 not selected (level 2 selected just has "current" adding
> > >>> to the class)-----
> > >>> <ul>
> > >>> <li class=""><a href="<%!! Context:CurrentIndex.GetUrl() !!
> > >>> %>"><span><b><%!! Context:CurrentIndex.Headline !!%> </b></span> </a>
> > >>> </li>
> > >>> </ul>
>
> > >>> any tips on how to split these two so I just see top navigation for
> > >>> site a pages and only site b pages?
>
> > >>> thanks!
>
> > >>> --
> > >>> 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.
>
> > >> --
>
> > >> 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.- Hide quoted text -
>
> - Show quoted text -

-- 
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.

Reply via email to