WordPress.org

Ready to get started?Download WordPress

Ideas

Helpers for building consistent admin UI

  1. lenart
    Member

    12345

    One things that bothers me in WordPress is that each plugin looks like it came from its own world. Plugin authors have to build up own HTML markup (also for simplest things like form fields etc.) and they often apply their own styles. Some plugins use lots of colors, others use different typography/sizes etc. and with each plugin you install the backend looks more and more like a bad collage of different forms, fonts and colors.

    It would be great if users would have some kind of API to build up certain parts of backend in order to preserve common look-and-feel.

    I guess what I miss the most is helpers when writing/extending custom posts with meta fields. I'd love to have helpers like: text_field($label, $name, $hint); that would build the table rows and saving me some TRs and TDs. Feels like I have to write too much HTML instead of focusing on the functionality.

    Posted: 2 years ago #
  2. Bob Gregor
    Member

    12345

    I totally agree. There is a settings page API, but that has yet to trickle down to the level of form controls. Thing's I'd like to see:

    Filter hooks for defining JS callbacks & Ajax, and markup tweaks
    A way of automating post meta saves, and option saves and delete_options

    Posted: 2 years ago #
  3. Bob Gregor
    Member

    12345

    After digging around the core, it looks like a lot of this may already be implemented. Take a look at template.php::1125

    Posted: 2 years ago #
  4. Bob Gregor
    Member

    12345

    the function you're looking for is
    add_settings_field($id, $title, $callback, $page);

    Posted: 2 years ago #
  5. Unsal Korkmaz
    Member

    12345

    I totally agree but i believe we have to start to use a css framework for admin ui so it would be much more easier to keep it up. Btw I read they are starting to use Sass for admin ui.

    Posted: 8 months ago #
  6. Ellen Hopkins
    Member

    I agree with this, it would really simplify things visually.

    Posted: 6 months ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    28 Votes
  • Status

    This idea has been implemented