Closed (won't fix)
Project:
Composite Layout
Version:
6.x-1.0-beta8
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2010 at 11:48 UTC
Updated:
10 Nov 2010 at 01:53 UTC
A simple modification would make the node entry form much nicer and easier to follow. The primary tab should not be populated with all extra entries but one, Composite Layout. When this one is selected, all the other entries will appear in the secondary row. All it takes is moving the paths one item deeper and placing a common entry in the primary row:
function composite_menu() {
$items = array();
$items['node/%node/composite'] = array(
'title' => t('Composite Layout'),
'page callback' => 'composite_zones_page',
'page arguments' => array(1),
'access callback' => 'composite_access',
'access arguments' => array('zones', 'update', 1),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
'file' => 'composite.pages.inc',
);
$items['node/%node/composite/composite_zones'] = array(
'title' => t('Zones'),
'page callback' => 'composite_zones_page',
'page arguments' => array(1),
'access callback' => 'composite_access',
'access arguments' => array('zones', 'update', 1),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 3,
'file' => 'composite.pages.inc',
);
// Generate local task for each reference type that requests it
$types = composite_get_types();
foreach ($types as $type) {
if ($type['local task']) {
$items['node/%node/composite/composite_' . $type['type']] = array(
'title' => $type['label']['plural'],
'page callback' => 'composite_general_select_page',
'page arguments' => array($type['type'], 1),
'access callback' => 'composite_access',
'access arguments' => array($type['type'], 'update', 1),
'type' => MENU_LOCAL_TASK,
'weight' => 3,
'file' => 'composite.pages.inc',
);
}
}
return $items;
}
Bye,
Comments
Comment #1
bengtan commentedHi,
Sorry, I can't easily do this.
Moving Composite Layout's menu items one level lower would be detrimental to a lot of ProsePoint sites out there. These sites have the node local tasks (ie. View, Edit, Zones etc) appearing as the second level.
If I move Composite Layout's menu items one level lower, they would disappear entirely (since local tasks doesn't support three levels ... at least not yet).