Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
In the tutorial "tying loose ends" it shows the menu using class="current" however my menu system doesnt show this class:
Code: Select all
<div class="collapse navbar-collapse ccr-nav-main">
               <ul class="nav navbar-nav">
         <li><a class="active" href="<cms:link 'index.php' />">News</a></li>
         <li class="dropdown">
      <a href="#">Lifestyle <i class="fa fa-caret-down"></i></a>
      <ul class="sub-menu">
      <li><a href="blog.html">Health/Fitness</a></li>
           <li><a href="<cms:link 'recipes.php' />">Recipes/Food</a></li>
         <li><a href="<cms:link 'religion.php' />">Religion</a></li>
                       </ul><!-- /.sub-menu -->
                  </li><!-- /.dropdown -->
      <li><a href="<cms:link 'sports.php' />">Sports</a></li>
      <li><a href="<cms:link 'opinions.php' />">Opinions</a></li>
                <li><a href="<cms:link 'obituaries.php' />">Obituaries</a></li>
           <li><a href="http://www.marioncountynews.net/classifieds/">Classifieds</a></li>
    <li class="dropdown">
      <a href="#">Services <i class="fa fa-caret-down"></i></a>
      <ul class="sub-menu">
      <li><a class='sfm_wnd_classifieds_link' href='javascript:void(0);'>Advertise with us</a></li>
           <li><a class='sfm_wnd_event_link' href='javascript:void(0);'>Submit An Event</a></li>
      <li><a href="javascript:void( window.open('http://form.jotform.us/form/51090606995158', 'blank','scrollbars=yes,toolbar=no,width=700,height=500'))">Subscribe Today!</a></li>
                       </ul><!-- /.sub-menu -->
                  </li><!-- /.dropdown -->                                             
  <li><a href="<cms:link 'contact.php' />">Contact Us</a></li>
                   <li><a class="active" <a href="http://users3.smartgb.com/g/g.php?a=s&i=g36-24574-a3"><img alt="Guestbook" border="0" src="img/guestbook.png" width="80" height="40"></a>
</li>
                  <li class="dropdown">
                     <a href="#">Links<i class="fa fa-caret-down"></i></a>
                     <ul class="sub-menu">                 <li><a href="http://www.marionschools.org/">Marion Co. Schools</a></li>                   <li><a href="http://www.richardhardy.org/">Richard Hardy Schools</a></li>
<li><a href="http://www.marioncountychamber.com/">Chamber of Commerce</a></li>
<li><a href="http://www.jasper-tn.com/">Town of Jasper</a><li>                       
<li><a href="http://southpittsburgtn.org/">City of S.Pittsburg</a></li>
<li><a href="http://townofkimball.com/">Town of Kimball</a></li>
<li><a href="http://cityofwhitwell.org/">City of Whitwell</a></li>
<li><a href="http://www.nationalcornbread.com/">Nat.Cornbread Fest</a></li>
<li><a href="https://extension.tennessee.edu/marion/Pages/default.aspx">UT Extension Office</a></li>
<li><a href="http://jasperpubliclibrary.org/index.htm">MC Library System</a></li>
<li><a href="http://www.tn.gov/safety/dlstations/marion.shtml">Drivers License Info</a></li>
<li><a href="http://www.ssa.gov/">Social Security</a></li>
<li><a href="<cms:link 'privacystatement.php' />">Privacy Statement</a></li>                                       



                                   </ul><!-- /.sub-menu -->
                  </li><!-- /.dropdown -->
               </ul> <!-- /  .nav -->
            </div><!-- /  .collapse .navbar-collapse  -->


Do I need to worry about this class ="current" issue?....
I also did not set up a global for my header.html instead I just handcoded each menu on the templates...Should I set up a global header.html for the website to work perfectly when Im completely switched over?

Attachments

Do I need to worry about this class ="current" issue?..
If your design doesn't need to highlight the current menu, feel free to skip it.

I also did not set up a global for my header.html instead I just handcoded each menu on the templates...Should I set up a global header.html for the website to work perfectly when Im completely switched over?
Once again, it is your call. Couch does not mandate or impose any restrictions on you. Using a global snippet is a convenience so that you need to make changes only on one location. Your method will work too but in case something changes you'll have to make the changes in all the templates.

Use whatever seems convenient to you.
2 posts Page 1 of 1