Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299394

Add "Add" item to toolbar.

$
0
0

Problem/Motivation

Adding content is a critical function in Drupal. While we have added a tools block and a default shortcut for this EVERY OTHER MAJOR CMS puts an add or create content link in the MAIN toolbar. This is marked critical because it is a critical usability problem in Drupal that a new user has to hunt around just to find where to do the most fundamental thing that a CMS does; create content.

Content can not only be nodes, but also media items or custom entities

Proposed resolution

(a) The optimal solution would be to make "Add content" a primary toolbar item using hook_toolbar() with a tray for the available types.

(b) Alternatively, we can add another menu that is linked to "Add" and displayed in the tray. Node, Media and other modules can then add menu items to it, and sitebuilders can customize it per site.

Remaining tasks

Write new patch.

For (b)

  • Create a menu in the system module (together with other menus).
  • Display the menu in the toolbar, themed similar to the admin menu
  • Configure Node module to add menu items for the default Add content and/or the default Add article and Add pages.
  • In case the Media module provides default media types: add them as well.
  • Remove the Add content short cut to avoid too much duplication.
  • Change the hook_help text of the Toolbar and possibly of the Shortcut module.
  • Fix the tests.

User interface changes

The item 'add content' would appear in the top toolbar.

This is a UI change and therefore the hook_help text and other documentation needs to be changed.

API changes

?

Data model changes


Viewing all articles
Browse latest Browse all 299394

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>