WordPress.org

Ready to get started?Download WordPress

Forums

Add Site Links to Admin Sidebar? (12 posts)

  1. travelvice
    Member
    Posted 3 years ago #

    Screenshot: http://i.imgur.com/fxZas.png

    I've only got two or three sites, and it's driving me batty to always have to click on 'My Sites' then on the 'Dashboard' link to navigate around between them.

    How can I add these dashboard links directly to this section?

  2. If you use the admin bar, they should be listed there.

  3. travelvice
    Member
    Posted 3 years ago #

    Alas, I do not. On a netbook as I travel, and screen real estate is a premium. :)

  4. Ah :)

    http://wpmututorials.com/how-to/adding-a-menu-to-the-new-network-admin/ - That will tell you how to add a menu

    And http://wpmututorials.com/how-to/return-a-list-of-sites-on-the-network/ will tell you how to make a list of all the sites

  5. and there's even widgets to stuff 'em in the sidebar

    http://wordpress.org/extend/plugins/diamond-multisite-widgets/

  6. Yeah, but not the admin sidebar, which I gathered he wanted.

  7. travelvice
    Member
    Posted 3 years ago #

    @Ipstenu - that would be correct, sir! Admin only... my hope would be across all the admin dashboards, not just the network admin. :\

  8. Ma'am ;)

    Hrm. You'd have to put it in mu-plugins to make the menu show up in all sites AND the network admin. but. BUT.

    Have you considered http://wordpress.org/extend/plugins/admin-bar-minimiser/

  9. travelvice
    Member
    Posted 3 years ago #

    I hadn't looked at that little fella yet. Certainly nicer...

    but. BUT. (hehe)
    I would still rather go the menu route instead of the bar. Sounds like a plugin it is.

    EDIT: I wonder if this will fit the bill: http://wordpress.org/extend/plugins/admin-menu-editor/

  10. Just tossing it out there ;) my Dad likes that one.

    To add a menu to the admin pages, read http://codex.wordpress.org/Function_Reference/add_menu_page and http://codex.wordpress.org/Function_Reference/add_submenu_page

    I'd probably use add_submenu_page('index.php',...) to add it to the dashboard.

  11. travelvice
    Member
    Posted 3 years ago #

    add_submenu_page it shall be. Thanks much for the brain power on this -- extremely helpful narrowing down exactly what needs to be done.

  12. Helen Hou-Sandi
    WordPress Dev
    Posted 3 years ago #

    I did what sounds like what you're looking for a while back (pre-admin bar), but it probably needs some tweaking depending on how whether you use subdomains or subfolders: http://blog.helenyhou.com/2010/07/wordpress-function-sites-in-dashboard-menu/

    I've only ever seen evidence that you can't link externally from the admin menu, so my function does something kind of hacky/ugly that made it work for me. Probably the better thing to do would be to do a redirect in the callback function for the "page" being added to the menu.

Topic Closed

This topic has been closed to new replies.

About this Topic