logo

Member
Member
Offline Offline
Posts: 46
SVN 650: Setting admin nav to top still builds vertically and left aligned w/FIX

After installing, and logged into administrator, select profile, then user preferences

Change admin menu to top, enter password, then update

Open admin, noticing the nav panel is now on top, but links are build vertically down the left side, as well as it having two 'header' bars

To fix, you're going to need to first correct the css

Open
Code:
themes/default/style.css


Find:
Code:

.navbar-admin-top {
   width: 150px;
}
.navbar-admin-top ul {
   padding-left: 10px;
   list-style: none;
}


Replace With:
Code:

.navbar-admin-left {
   width: 150px;
}
.navbar-admin-left ul {
   padding-left: 10px;
   list-style: none;
}
.navbar-admin-top {
   margin-left:auto;
   margin-right:auto;
   width: 95%;
   font-weight: bold;
}
.navbar-admin-top ul {
   list-style: none;
}
.navbar-admin-top li {
   display: inline;
   padding-left:4px;
   padding-right:4px;
}


Now, you need to make it know which one to use for left.
Open
Code:
Layouts/Admin/Menu/left.php

Find:
Code:

    <td valign="top" class="navbar-admin-top">' . theme('title', 'Navigation') . '


Replace With:
Code:

    <td valign="top" class="navbar-admin-left">' . theme('title', 'Navigation') . '


Next, to fix the double line header background for 'top'..
Open
Code:
Layouts/Admin/Menu/top.php


Find:
Code:

    <td valign="top"><div class="titlebg-left"></div><div class="titlebg titlebg-right"></div><div align="center" class="titlebg">' .$title . '</div></td>


Replace with:
Code:

    <td><div class="titlebg-left"><div class="titlebg titlebg-right"><div class="titlebg">' .$title . '</div></div></div></td>


This will get rid of the extra black bar (wrong arrangement of div's), as well as correct the alignment of the way it builds.
Last Edit: 19th September, 2009, 08:50:06 PM by FWishbringer
Member
Member
Offline Offline
Posts: 46
Update

Updated original post, corrected so that it builds correctly for all placements.
Last Edit: 19th September, 2009, 08:51:04 PM by FWishbringer
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1527
Re: SVN 650: Setting admin nav to top still builds vertically and left aligned w/FIX

I used your fix except it didnt look right at all. The Left navigation in the admin panel extended right across the page and made it on its own line

Please do not PM me requesting support or anything, use the forums, thats what they are here for
Member
Member
Offline Offline
Posts: 46
Re: SVN 650: Setting admin nav to top still buil

You made sure you put in
Code:

.navbar-admin-left {
   width: 150px;
}
.navbar-admin-left ul {
   padding-left: 10px;
   list-style: none;
}


and changed the left.php to read

Code:
  <td valign="top" class="navbar-admin-left">' . theme('title', 'Navigation') . '


right?

This addition to the original post is what was required to fix the left column from my initial post.

Jump to:


0.05 seconds Queries: 13