i've pasted the nav manager template code below for our navigation.
we basically did the same thing as mentioned above, but we also did it
for file pages and links to existing reddot pages (because if you
connect to a page that exists somewhere else in the navigation it
completely screws up the navigation).

so we've got 3 templates other than our regular foundation pages: file
page, url page, and reference existing page.  they each have a
standard field w/ a flag set for the type of page they are, which is
what this code checks for....


<reddot:cms>
<if>
        <query valuea="Context:CurrentIndex.Id" operator="=="
valueb="Context:LastIndex.Id">

            <foreach itemname="PeerIndex"
object="Context:CurrentIndex.Parent.SubIndexes">
                <if>
                    <query valuea="Store:PeerIndex.Id" operator="=="
valueb="Context:LastIndex.Id">
                    <!--IF IS CURRENT PAGE-->

                        <htmltext>
                        <li class="opened">
                        <a href="<%!! Store:PeerIndex.GetUrl() !!%>" ><
%!! Store:PeerIndex.Headline !!%></a>
                        </li>
                        </htmltext>
                            <if>
                                <query
valuea="Store:PeerIndex.HasChildren()" operator="=="
valueb="Bool:True">
                                <htmltext><ul></htmltext>
                                    <foreach itemname="SubIndex"
object="Store:PeerIndex.SubIndexes">

                                                <if>
                                                    <query
valuea="Store:SubIndex.Page.Elements.GetElement(stf_flag).GetHtml()"
operator="==" valueb="InternalLink">
                                                        <htmltext>

                                                        <li>
                                                        <a href="<%!!
Store:SubIndex.GetUrl() !!%>" ><%!! Store:SubIndex.Headline !!%></a>
                                                        </li>

                                                        </htmltext>
                                                    </query>
                                                    <query
type="else">
                                                    <if>
                                                        <query
valuea="Store:SubIndex.Page.Elements.GetElement(stf_flag).GetHtml()"
operator="==" valueb="Document">
                                                        <htmltext>
                                                        <li>
                                                        <a href="<%!!
Store:SubIndex.Page.Elements.GetElement(med_document).GetHtml()" !!
%>"><%!! Store:SubIndex.Headline !!%></a>
                                                        </li>
                                                        </htmltext>
                                                        </query>
                                                        <query
type="else">

                                                            <!--NEW--
>
                                                            <if>
                                                                <query
valuea="Store:SubIndex.Page.Elements.GetElement(stf_flag).GetHtml()"
operator="==" valueb="ReferenceExisting">
                                                                  <!--
Link to an External Site -->
 
<htmltext>
 
<li><a href="<%!! Store:SubIndex.Page.Elements.GetElement
(anc_link).GetHtml() !!%>">
 
<%!! Store:SubIndex.Headline !!%></a></li>
                                                                  </
htmltext>
                                                                </
query>
                                                                <query
type="else">
                                                                <!--/
NEW-->


 
<htmltext>
 
<li><a href="<%!! Store:SubIndex.Page.Elements.GetElement
(stf_external_link).GetHtml()" !!%>"><%!! Store:SubIndex.Headline !!
%></a></li>
                                                                    </
htmltext>

                                                                <!--
NEW-->
                                                                </
query>
                                                            </if>
                                                            <!--/NEW--
>

                                                        </query>
                                                    </if>
                                                    </query>
                                                </if>

                                    </foreach>

                                <htmltext></ul></
htmltext>
                                </query>
                            </if>

                        <htmltext>
                        </li>
                        </htmltext>

                     </query>
                     <query
type="else">
                        <if>
                            <query
valuea="Store:PeerIndex.Page.Elements.GetElement(stf_flag).GetHtml()"
operator="==" valueb="InternalLink">
                                <htmltext>
                                <li><a href="<%!!
Store:PeerIndex.GetUrl() !!%>"><%!! Store:PeerIndex.Headline !!%></a></
li>
                                </htmltext>


                            </query>
                            <query type="else">
                                <if>
                                    <query
valuea="Store:PeerIndex.Page.Elements.GetElement(stf_flag).GetHtml()"
operator="==" valueb="Document">
                                    <htmltext>
                                    <li><a href="<%!!
Store:PeerIndex.Page.Elements.GetElement(med_document).GetHtml()" !!
%>"><%!! Store:PeerIndex.Headline !!%></a></li>
                                    </
htmltext>
                                    </query>
                                    <query type="else">


                                                            <if>
                                                                <query
valuea="Store:PeerIndex.Page.Elements.GetElement(stf_flag).GetHtml()"
operator="==" valueb="ReferenceExisting">
                                                                  <!--
Link to an External Site -->
 
<htmltext>
 
<li><a href="<%!! Store:PeerIndex.Page.Elements.GetElement
(anc_link).GetHtml() !!%>">
 
<%!! Store:PeerIndex.Headline !!%></a></li>
                                                                  </
htmltext>
                                                                </
query>
                                                                <query
type="else">
                                                                <!--/
NEW-->
                                    <htmltext>
                                    <li><a href="<%!!
Store:PeerIndex.Page.Elements.GetElement(stf_external_link).GetHtml
()" !!%>"><%!! Store:PeerIndex.Headline !!%></a></li>
                                    </htmltext>

                                                                <!--
NEW-->
                                                                </
query>
                                                            </if>
                                                            <!--/NEW--
>

                                    </query>
                                </if>
                            </query>
                        </if>
                     </query>
                </if>
            </foreach>

        </query>
        <query type="else">
            <htmltext>
                <navigation:nextlevel>
            </htmltext>
        </query>
</if>
</reddot:cms>

i hope this helps.

-sarah


On Sep 4, 10:08 am, Jim Noellsch <[email protected]> wrote:
> Thought I might have to trick it with physical pages...great idea
> though.  Could you share the navigation template coding to pull this
> off?
>
> Thanks,
> Jim
>
> On Sep 4, 8:09 am, JimV <[email protected]> wrote:
>
> > Jim,
> > We had a similiar problem, which our internal RedDOT developer found a
> > good solution for.
> > He developed a foundation content class for external links, where the
> > content owner enters the URL for the external link, and if they want
> > it to open in a new window (default).
> > Then in our TopNavigation template, he has code to check to see if
> > there is an external link, and publishes that into the menu structure
> > instead of actual page.
>
> > Let me know if you need more details.
> > Cheers,
> > Jim
>
> > On Sep 3, 2:50 pm, Jim Noellsch <[email protected]> wrote:
>
> > > Is there a strategy for using Navigation Manager that mixes CMS pages
> > > and external links?  We have navigation that does this in areas like
> > > Support and Purchase where microsites are maintained outside of the
> > > CMS by different teams.
>
> > > EXAMPLE:
>
> > > Purchase (/purchase.htm - INTERNAL)
> > >    |__ Online Store (http://shop.domain.com-EXTERNAL)
> > >    |__ Find a Reseller (http://www.domain.com/blah-EXTERNAL)
> > >    |__ Government & Education (/government-education.htm - INTERNAL)
> > >    |__ Contact Us (/contact.htm - INTERNAL)
>
> > > Any ideas or thoughts on this are greatly appreciated.
>
> > > Thanks,
> > > Jim
--~--~---------~--~----~------------~-------~--~----~
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