6 Replies Latest reply: Oct 18, 2012 8:06 PM by Ben Pleysier RSS

    The "Home" tab in Spry menu reverts to sub-folder status.

    john@johnoster.com

      I have 8 primary selection tabs in my Spry menu. Those pages live in the root folder. All other pages live in a sub-folder called "pages". This setup worked perfectly for months. At some point, and I know not why or exactly when, when I click on a "pages" sub-folder tab and then try to go back to the primary row of tabs, the selection pop-up tells me that the path for any of those on top has changed to http://mywebsite/_pages/Home  and of course an error occurs.  I am using CS6 and I have modified the template several times as well as the index.html file. I have even swapped out all the newly modified pages. But the paths appear to stay exactly as they were when I first noticed them. What else can be causing this problem?

      Thanks in advance.

      John Oster

        • 1. Re: The "Home" tab in Spry menu reverts to sub-folder status.
          John Waller MVP

          Can you provide a link to a page which displays the problem behaviour so we can view it in our browsers?

          • 2. Re: The "Home" tab in Spry menu reverts to sub-folder status.
            john@johnoster.com Community Member

            There is not a link I can show you. That is the center of the mystery for me. I can't find the origin of the link that pops up.

            When I hover over the "Home" tab, I can see that the path will be incorrect. It should be saying http://www.mysite/index.html  Instead, it is saying  http://www.mysite/_pages/index.html   I already know it's not going to find the 'Home' page in the "pages" folder. So why is it trying to tell me that's where it is?

             

            I had the thought that the "broken links" checker in Dreamweaver did more damage than I had previously imagined. I just checked the navigation on one of the pages in the "pages" subfolder and found this at the top of the Spry navigation:

            <li><a class="MenuBarItemSubmenu" href="../index.html">Home</a>  This indicates a correct path from a sub-folder page  TO the "Home" tab in the Spry menu, I assume. But I have no idea how this got there other than from a "broken links" check. (It was a page created from a template.)

             

            I'm self educated. And I know that's an oxymoron, but shouldn't all the pages in my site come from the same template? So the same navigation appears on each page? I really don't know some of these basic things. Should my links be document relative or site root relative? I only have 29 pages and this is my first published site. I think I should start all over again. What would your thoughts be on that? At this point I'm wondering if that is the path of least resistance.

            John O.

            • 3. Re: The "Home" tab in Spry menu reverts to sub-folder status.
              Ben Pleysier MVP

              Because you are not giving us much to work on, I am assuming that index.html resides in the root directory and the other pages reside in the pages subdirectory. I am also assuming that you have created a template that includes the menu items with relevant links.

               

              If the above is true, you are best off using absolute links, ie in lieu of

              <a class="MenuBarItemSubmenu" href="../index.html">Home</a>

              use

              <a class="MenuBarItemSubmenu" href="http://www.mysite/index.html">Home</a>

              • 4. Re: The "Home" tab in Spry menu reverts to sub-folder status.
                john@johnoster.com Community Member

                I apologize for lack of content. I thought I was making it clear. But of course my eyes are beginning to cross at this point.

                Yes, your assumptions are correct. At the top of this page I described it as best I could. The 8 visible menu tabs link to pages nested in the root. All other pages lived in a sub-folder titled "pages".

                The index.html file lives in the root as well.

                The drop-downs link to pages in a sub-folder.

                I can skip across the menu bar and each page appears as it should. But when I click on a drop-down link to a page in a sub-folder, I am not able to go back to the top menu.

                When I hover over the 'Home' tab, the command indicates http://www.mysite/_pages/Home

                   I just finished moving all the sub-folder pages to a new sub-folder and created a completely new template with new navigation links.

                   The same problem occurs, but with the new navigation links.

                When I click on a sub-folder page and then hover over the 'Home' tab, the command indicates: http://www.mysite/newsubfolder/home

                So I will try your suggestion. Thank you for your time. I will let you know how it goes. If this doesn't work, I'm going to scratch this and begin again.

                • 5. Re: The "Home" tab in Spry menu reverts to sub-folder status.
                  john@johnoster.com Community Member

                  I've just tried your suggestion and I am unable to create a workable page from the template to use as an index page. It's time to scrub this project and begin anew. Just as well. I have learned a lot from this experience. I know quite a bit more than I did before I started this.

                       I can fetch a backup copy and modify that so I have a working site while I build a new one.

                  Thanks again for your time and suggestions.

                  John O.

                  • 6. Re: The "Home" tab in Spry menu reverts to sub-folder status.
                    Ben Pleysier MVP

                    Please do not start again, you are very close to the solution.

                     

                    Have a look at the following scenarios:

                     

                    1. If the template shows

                    <a class="MenuBarItemSubmenu" href="../index.html">Home</a>

                    <a class="MenuBarItemSubmenu" href="about.html">About Us</a>

                    <a class="MenuBarItemSubmenu" href="contact.html">Contact</a>

                    and the template is applied to index.html which resides in the root folder, none of the links will work. However, if the template is applied to about.html which resides in a subfolder (_pages), then all of the links will work.

                     

                    2. If the template shows

                    <a class="MenuBarItemSubmenu" href="http://mywebsite/index.html">Home</a>

                    <a class="MenuBarItemSubmenu" href="http://mywebsite/_pages/about.html">About Us</a>

                    <a class="MenuBarItemSubmenu" href="http://mywebsite/_pages/contact.html">Contact</a>

                    then it does not matter where the template is applied, the links will always work, assuming that about.html and contact.html are both located in the _pages subdirectory.