GithubHelp home page GithubHelp logo

Comments (6)

NickHeurter avatar NickHeurter commented on June 18, 2024

This would be a very cool function!

from admin-menu-manager.

blogmom avatar blogmom commented on June 18, 2024

yes, user-specific customization of admin panel would be a dream come true. But.......... can you do this: for any New Item added by a user, append their userID and a unique number to the page slug of the new item, so that the ScreenID is unique. (i.e., toplevel_page_{page_slug} would be toplevel_page_userID_uniqnum https://codex.wordpress.org/Plugin_API/Admin_Screen_Reference Why? Then we could use add_meta_box to send widgets directly to that screen. By doing this, a user could create multiple unique dashboard pages (and move them around anywhere using your magic plugin) instead of having just one dashboard/Home page. Granted, there would need to be a clever way to give users a way to drag widgets onto the New Items, but we could probably find a way. The key is having unique ScreenIds.

from admin-menu-manager.

swissspidy avatar swissspidy commented on June 18, 2024

@blogmom Sounds like that's worth a new issue.

for any New Item added by a user, append their userID and a unique number to the page slug of the new item, so that the ScreenID is unique. (i.e., toplevel_page_{page_slug} would be toplevel_page_userID_uniqnum

Perhaps we could, but I suspect this would break many things like stylesheets, capability checks, the menu item mapping, etc.

The key is having unique screen ids.

Can't you do something like if ( 123 === get_current_user_id() ) { add_meta_box(); } to set meta boxes per user?

from admin-menu-manager.

blogmom avatar blogmom commented on June 18, 2024

I suppose... but I want my users to freely choose their dashboard widgets (which they can do now) but with one of my clients, users also want ability to create multiple Dashboard pages (it would be like having vertical "tabs"). I have dreamed of this too, since the Dashboard was invented. But adding stuff to Dashboard is usually done with hard-coding to affect all users, until I discovered your magic AMM plugin. Wow, now users can Order their Admin Panel and create New Items, just wow!. But... how can they create a New Dashboard Page and add widgets to it? My idea is to have a unique ScreenID (similar to what happens with I create a new page using add_menu_page), but maybe I don't understand the solution you pasted....

from admin-menu-manager.

swissspidy avatar swissspidy commented on June 18, 2024

OK, I think now I got what you mean. Right now, the new items created by the plugin are simply external links. To make them real pages within the admin, AMM needs to use add_menu_page(). I now created a new issue #39 for that. Let's continue the discussion there.

Note that add_menu_page() is only half of the deal. To make a new dashboard page possible with widgets etc. you'd have to do much, much more. Nothing this plugin should do.

from admin-menu-manager.

blogmom avatar blogmom commented on June 18, 2024

Totally understand that AMM should not expand its scope to add widgets
to pages. But it would be HUGE (for me) to give users ability to add
Admin Menu Pages! I could try creating a plugin or a fancy page in the
Admin Top bar to add widgets to the pages.

Actually..... I know you have bigger fish to fry with AMM right
now. Let me please ask you this. I created a "New Page" button in
the admin top bar. When clicked, it can open a link. But what code
would I need to add in that link, to run "add_menu_page" and allow users
to create a new page themselves? I am totally stuck, spent hours
tinkering. I can only get add_menu_page to work within functions.php,
I can't figure out how to trigger it from other pages after the site is
rendered. If I could figure out how to give users a way to create a
dashboard page themselves, then AMM could be used for just sorting the
Menu items (assuming AMM can have an option to toggle between "full mode" and "sort only" modes).

On 10/9/2016 4:16 AM, Pascal Birchler wrote:

OK, I think now I got what you mean. Right new, the new items created
by the plugin are simply external links. To make them real pages
within the admin, AMM needs to use |add_menu_page()|. I now created a
new issue #39
#39 for
that. Let's continue the discussion there.

Note that |add_menu_page()| is only half of the deal. To make a new
dashboard page possible with widgets etc. you'd have to do much, much
more. Nothing this plugin should do.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#32 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVq2ycfdbUxa36b_mY-AfiC1UidYNPgAks5qyLD3gaJpZM4GJj2u.

from admin-menu-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.