Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected menu item #168

Closed
andreasf2012 opened this issue Nov 18, 2014 · 5 comments
Closed

Selected menu item #168

andreasf2012 opened this issue Nov 18, 2014 · 5 comments
Assignees
Labels
frontend The frontend interface

Comments

@andreasf2012
Copy link

Hello,

which code is responsible, that the selected menu item is getting another background-color? I duplicated the dashboard-page to create my own pages. But now every menu item of my own pages is changing the background-color, when I choose one of them.

I am sorry, I hope you guys understand what I am talking about.

Thank you in advance!

@alexweissman
Copy link
Member

Are you talking about css/sb-admin.css and css/sb-admin-master.css?

Getting the CSS right for all the different menu items was tricky business, as far as I recall. We probably ought to start using something like LESS or SASS in the future to make it easier to change color schemes and the like.

@lilfade
Copy link
Contributor

lilfade commented Nov 19, 2014

i believe what your looking for is this section of the code:

<!DOCTYPE html>
<html lang="en">
  <?php
    echo renderAccountPageHeader(array("#SITE_ROOT#" => SITE_ROOT, "#SITE_TITLE#" => SITE_TITLE, "#PAGE_TITLE#" => "Dashboard"));
  ?>

  <body>

    <div id="wrapper">

      <!-- Sidebar -->
        <?php
          echo renderMenu("dashboard");
        ?>

You will need to change the dashboard part to what ever your page names are

@andreasf2012
Copy link
Author

Thanks, your 2. answer was great!

I have one point to add. The name you give for the variable "renderMenu" has to be add in the database, table "uf_nav", column "class-name" for the respective site. Otherwise the selected menu item is not colored.

@alexweissman
Copy link
Member

Yup, thanks. We will add this to the documentation.

@alexweissman alexweissman added the frontend The frontend interface label Dec 7, 2014
@alexweissman alexweissman self-assigned this Dec 8, 2014
@alexweissman
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend The frontend interface
Projects
None yet
Development

No branches or pull requests

3 participants