Announcement

Collapse
No announcement yet.

problems with Navigation Bar

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    problems with Navigation Bar

    Hi Folks

    Got a bit of an odd problem to do with the side navigation bar using the Art Deco theme.

    Strangely, I asked the advice of an experienced friend of mine & he couldn't replicate it but he's too far away to just pop round and have a look at his set-up so...

    I've re-created this in a fresh site, using the Art Deco inbuilt theme.

    What we're concerned with is the buttons in the side frame navigation bar. Specifically buttons for brochure pages.

    A button for a brochure page can be defined in the properties for the brochure page or - by default - there's an option under Design/options/brochre for a default button.

    If we set that default button to say the links icon, then we get a navigation bar - as expected - shown in the attached act1.jpg

    What I want to be able to do is prevent some brochure pages from having a button in this navigation bar (they'll be linked via text instead). To do this, I deleted the default brochure button under design/options/brochures and made sure no button was defined under the individual brochure page properties.

    I do that, and we get a nav bar with a gap in it! See the attached act2.jpg

    Help! How do I get round this so the gap closes up? This is driving me crazy (not all that difficult).

    Many thanks - Dunc.
    Attached Files

    #2
    Hi,

    Can you check in 'Advanced | Template Manager | Brochure tab (click 'Change View' if you do not see the tabs) | FrameNavItem template if you have a '<BR>' tag in there at all. If so, then please delete it.
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      Hi Tracey

      Thanks for the pointer but not quite there yet.

      The framenavitem template looks like:

      <!-- BrochureFrameNavItem HTML begin -->
      <!-- This file is used to build the navigation item for frames. -->
      <A HREF="NETQUOTEVAR:NAVLINK" TARGET="NETQUOTEVAR:NAVTARGET" NETQUOTEVAR:MOUSEOVERCALL>NETQUOTEVAR:NAVIMAGE<BR></A>
      <!-- Not used NETQUOTEVAR:NAVTEXT-->
      <!-- This file is used to build the navigation item for frames. -->
      <!-- BrochureFrameNavItem HTML end -->

      So I got rid of that <BR> after NETQUOTEVAR:NAVIMAGE but that just breaks the navbar with the second button trying to appear alongside the first rather than underneath it.

      Cheers - Dunc.

      Comment


        #4
        Hi,

        This is really odd because it works for me. Can you check that you have deleted the 'Highlight Image' button for the brochure page and the 'default' image (Design | Options | Brochure tab).
        ********************
        Tracey
        SellerDeck

        Comment


          #5
          Hi Tracey & thanks for the help so far.

          This is my revised FrameNavItem without the <BR> and the attached image shows what hapens.

          <!-- BrochureFrameNavItem HTML begin -->
          <!-- This file is used to build the navigation item for frames. -->
          <A HREF="NETQUOTEVAR:NAVLINK" TARGET="NETQUOTEVAR:NAVTARGET" NETQUOTEVAR:MOUSEOVERCALL>NETQUOTEVAR:NAVIMAGE</A>
          <!-- Not used NETQUOTEVAR:NAVTEXT-->
          <!-- This file is used to build the navigation item for frames. -->
          <!-- BrochureFrameNavItem HTML end -->


          And in case anything leaps out at you... I've got the following as the code for adjacent templates:

          =========
          <!-- BrochureFrameSet HTML begin -->
          <HTML>
          <HEAD>
          <TITLE>
          NETQUOTEVAR:PAGETITLE
          </TITLE>
          <META NAME="ACTINICTITLE" CONTENT="Frames">
          NETQUOTEVAR:HEADERMETA
          <SCRIPT LANGUAGE="JavaScript">
          <!--
          function onLoad()
          {
          if(window.location.search.length > 0)
          {
          var sEscapedParams = unescape(window.location.search);
          sEscapedParams = sEscapedParams.substring(1);
          if (sEscapedParams.indexOf('&BrochureBody') == -1)
          {
          return;
          }
          var nTheSplit = sEscapedParams.lastIndexOf('&');
          var sThePageUrl = sEscapedParams.substring(0,nTheSplit);
          var sTheFrameName = sEscapedParams.substring(nTheSplit+1);
          eval("window."+sTheFrameName+".location.replace('"+ sThePageUrl+"')");

          //Now workaround Microsoft's IE 5.5 Anchor bug

          var user_agent = window.navigator.userAgent
          var msie55 = user_agent.indexOf ( "MSIE" )
          if ( msie55 > 0 && sThePageUrl.indexOf("#") != -1)
          {
          var sTheAnchorName = sThePageUrl.substring (sThePageUrl.indexOf("#")+1, sThePageUrl.length);
          parent.BrochureBody.document.all(sTheAnchorName).scrollIntoView();
          }
          }
          }
          //-->
          </SCRIPT>
          </HEAD>

          <!-- This file is used to build the frameset for framed brochure sites. -->

          <FRAMESET COLS=145,* BORDER=0 frameborder=no framespacing=0 onLoad='onLoad();'>
          <FRAME SRC="NETQUOTEVAR:BROCHUREFRAMENAVBAR" scrolling=no marginwidth=0 marginheight=0 noresize name=BrochureNavBar>
          <Actinic:MAINFRAME>
          <FRAME SRC="NETQUOTEVAR:BROCHUREBODY" marginwidth=0 marginheight=0 name=BrochureBody>
          </Actinic:MAINFRAME>
          </FRAMESET>
          </html>
          <!-- BrochureFrameSet HTML end -->
          ========



          <!-- BrochureFrameNavBar HTML begin -->
          <html>
          <head>
          <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>
          <script language="JavaScript" src="actiniccore.js" type="text/javascript"></script>
          </head>
          <body NETQUOTEVAR:BGIMAGE NETQUOTEVAR:BGCOLOR onLoad="NETQUOTEVAR:ONLOAD"
          NETQUOTEVAR:FGCOLOR NETQUOTEVAR:LINKCOLOR
          NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR>
          <!-- This file is used to build the navigation bar for framed sites. -->
          <br>
          <br>
          <br>
          <table border="0" cellspacing="0" cellpadding="0">
          <tr>
          <td valign=top><img src=t.gif width=100 height=50></td>
          </tr>
          <tr>
          <td valign=top>NETQUOTEVAR:NAVGUIDE</td>
          </tr>
          <tr>
          <td valign=top><img src=b.gif width=100 height=50></td>
          </tr>
          </table>
          <Actinic:BROCHURE_LOGOUT/>
          </body>
          </html>
          <!-- BrochureFrameNavBar HTML end -->


          =========

          <!-- BrochureNavImage HTML begin -->
          <IMG SRC="NETQUOTEVAR:IMAGEFILE"
          ALT="NETQUOTEVAR:ALTERNATETEXT"
          BORDER=0
          NETQUOTEVAR:IMAGEHEIGHT
          NETQUOTEVAR:IMAGEWIDTH
          NETQUOTEVAR:OTHERIMAGEMARKUP>
          <!-- BrochureNavImage HTML end -->


          =========


          <!-- Act_BrochureDisabledNavItem HTML begin -->
          <!-- This file is used to build the disabled navigation item markup. -->
          <TD ALIGN=CENTER VALIGN=BOTTOM>
          NETQUOTEVAR:TEMPLATEBEGINXML
          NETQUOTEVAR:NAVIMAGE
          NETQUOTEVAR:TEMPLATEENDXML
          </TD>

          <!-- This file is used to build the navigation item markup. -->
          <!-- Act_BrochureDisabledNavItem HTML end -->


          Cheers - Dunc.
          Attached Files

          Comment


            #6
            ...and yes, forgot to mention but both default image fields blank as are the button image fields for that specific brochure page properties. (Attached)
            Attached Files

            Comment


              #7
              Hi,

              Can you check that you have deleted the 'Highlight Image' button for the brochure page and the 'default' image (Design | Options | Brochure tab).
              Did you check this?
              ********************
              Tracey
              SellerDeck

              Comment


                #8
                Originally posted by TraceyG
                Did you check this?
                Yes, see post which crossed with yours.

                Cheers - Dunc.

                Comment


                  #9
                  Hi,

                  I've just pasted the code you have posted into my templates and it all works ok. Can you post your Act_BrochurePrimary.html template too please.
                  ********************
                  Tracey
                  SellerDeck

                  Comment


                    #10
                    Hmm.. strange!

                    Here you go!

                    <!-- BrochurePrimary HTML begin -->
                    <HTML>
                    <HEAD>
                    <TITLE>
                    NETQUOTEVAR:PAGETITLE
                    </TITLE>
                    <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF" FORCED=NETQUOTEVAR:BASEHREFFORCED/>
                    <META NAME="ACTINICTITLE" CONTENT="NETQUOTEVAR:PAGEHEADER">
                    <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
                    <!--@act NETQUOTEVAR:HEADERMETA -->
                    <!--@act NETQUOTEVAR:P3PFULLPOLICYLINK -->
                    <!--@act NETQUOTEVAR:LOADFUNCTION -->
                    <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT>
                    </HEAD>

                    <BODY NETQUOTEVAR:BGIMAGE OnLoad="NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR TEXT="NETQUOTEVAR:FGCOLOR" NETQUOTEVAR:LINKCOLOR NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR>

                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="600" align="center">
                    <TR>
                    <TD colspan=2>NETQUOTEVAR:BROCHURELOGO
                    <BR>
                    <Actinic:NOWSERVING/>
                    <Actinic:CURRACCOUNT/><Actinic:BROCHURE_LOGOUT_SIMPLE/>
                    <!-- NETQUOTEVAR:REGISTEREDLOGIN -->
                    </TD>
                    </TR>
                    <TR>
                    <TD>
                    <!-- Note: TD cells opened in subordinate templates -->
                    <Table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="400" ALIGN="CENTER">
                    <TR>
                    NETQUOTEVAR:HEADERGUIDE
                    </TR>
                    </TABLE>
                    </TD>
                    </TR>
                    </TABLE>
                    <BR>
                    <BR>
                    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="600" align="center">
                    <TR>
                    <TD VALIGN=MIDDLE ALIGN=LEFT>

                    <FONT FACE="ARIAL">NETQUOTEVAR:BROCHUREBODY</FONT>
                    </TD>
                    </TR>
                    </TABLE>


                    </BODY>
                    </HTML>
                    <!-- BrochurePrimary HTML end -->


                    Cheers - Dunc.

                    Comment


                      #11
                      Hi,

                      Nope, still can't recreate it . I think we are going to need your snapshot so can you please register a support query here and someone will provide you with an e-mail address to send your snapshot to.
                      ********************
                      Tracey
                      SellerDeck

                      Comment


                        #12
                        Thanks for the help Tracey, a snapshot is now with Suresh so we'll see what it turns out to be.

                        I'll probably end up kicking myself over something simple but such is life!

                        Cheers.

                        Comment


                          #13
                          Just a quick thought - do you have 'compact CGI' enabled? You can introduce whitespace sometimes if not and it's tripped me up once or twice!

                          Bernie

                          Comment

                          Working...
                          X