default userpic

Rollover Navigation Bar with Pages

Vote 0 Votes

I am trying to reformat the standard navigation bar that comes in the website template to a custom image (sliding door) navigation bar. I have defined the main index, blog and pages (which are the header titles in the navigation bar) with li class and modified the css template, both my custom one and the screen.css and nothing seems to be working. The list of links simply comes one right after the other. Is there a special way the pages need to be named, or can you even do this with pages? Does this maybe need to go into the html of Main Index template instead of the Navigation template?

Here's one of the Pages from the Navigation Template:

<mt:Pages tags="@tour" limit="1">
    <mt:SetVarBlock name="tour"><$mt:PageID$></mt:SetVarBlock>
    <li class="tour<mt:If name="nav_on" eq="$tour"> on</mt:If>"><a href="<$mt:PagePermalink$>"><$mt:PageTitle$></a></li>
    </mt:Pages>

Reported on Movable Type 4.2

1 Reply

| Add a Reply
  • Hi Tina -

    The fact that the links come from pages doesn't matter how you format them, it's just a convenient way to get the links for your navigation.

    Ultimately, you'll need to make sure your classes (and ids, if you use them) match up to all of your CSS. For that, the best thing to do is get some sort of developer tool to look at what is in use. This can often be multiple stylesheets, which can make it difficult to troubleshoot.

    I personally like Firebug, because it gets to the heart of the matter without too much else. Some like the developer toolbar. I've also worked with some clients who use Chrome, and while it has a nice built in inspection tool, I don't like it as much for modifications on-the-fly.

    But whatever you use, you just need to figure out how to override the default classes to make your changes. Another alternative is just rip them out and replace them with your changes. If you are doing something fancy with JavaScript for sliding items, this might be a better option.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1249 4102

Last Topic: neophyte (newbie) by Mike on Mar 13, 2010

1001 3201

Last Topic: Parse Atom XML with PHP by benthomas on Mar 12, 2010

478 1958

Last Topic: Back To The 'Upgrading Database' Dilemma by Perry Simon on Mar 13, 2010

102 358

Last Topic: Saving an entry...what is happening by jdbeast00 on Mar 12, 2010

19 69

Last Topic: Custom main index page by Richard on Feb 7, 2010

43 171

Last Topic: by MG on Feb 20, 2010

11 22

Last Topic: Monthly Calendars Help Needed by joe leblanc on Jan 19, 2010

91 326

Last Topic: SpamLookup Keyword Filter 2.1 not work by b.n09 on Nov 17, 2009

54 199

Last Topic: Publishing error in MT 5 by mikemontesa on Feb 17, 2010

code.sixapart.com

129 448

Last Topic: Action Stream for Google Buzz by jack lail on Feb 16, 2010