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

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1428 5076

Last Topic: Stupid Question? How to make a static homepage by Jeremy on Feb 3, 2012

694 2908

Last Topic: Blogspot to Movable Type by sdude on Feb 8, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 565

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012