The base path of 'admin/structure/panels/entity/view/%fieldable_panels_panes' occupies 6 segments out of the maximum menu link depth of 9, which makes if difficult to build menu items on top of (for instance, to provide support for translatable panel panes).

http://api.drupal.org/api/drupal/includes!menu.inc/constant/MENU_MAX_DEPTH/7

In the provided patch I'm replacing "admin/structure/panels/entity/view/%fieldable_panels_panes" with 'fieldable-panels-panes/%fieldable_panels_panes', as well as implementing hook_admin_paths() to preserve its administrative nature. An update hook is also provided to flush the menu caches.

Comments

helior’s picture

Status: Active » Needs review
StatusFileSize
new18.83 KB
helior’s picture

Issue summary: View changes

Updated issue summary.

helior’s picture

StatusFileSize
new24.87 KB

Here is an iteration that I'm much more comfortable with. I'm only bringing the menu link depth down by 1, which is just barely enough for some wiggle room ;) The most prominent change you'll notice is that the "Entities" tab was renamed to "Fieldable Panels Panes" and is now available directly under admin/structure.

Since the path isn't removed from the admin/* path, hook_admin_paths() won't be necessary anymore. Also, it's important to note that this update was made because we want to maintain the breadcrumbs, which is the only way to easily navigate back to the bundle admin pages.

helior’s picture

StatusFileSize
new24.99 KB

Re-rolling.

helior’s picture

StatusFileSize
new24.93 KB

Missed a curly brace –- this time I tested :)

helior’s picture

StatusFileSize
new26.91 KB

Per request, added integration to the Panels Dashboard.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.