mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
issue 2611 menu detail setting develop.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11815 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
26562620ec
commit
9033eac789
3 changed files with 38 additions and 0 deletions
|
|
@ -684,6 +684,12 @@
|
||||||
if(file_exists($edited_layout)) $oModule->setEditedLayoutFile($edited_layout);
|
if(file_exists($edited_layout)) $oModule->setEditedLayoutFile($edited_layout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$isLayoutDrop = Context::get('isLayoutDrop');
|
||||||
|
if($isLayoutDrop)
|
||||||
|
{
|
||||||
|
$oModule->setLayoutPath('common/tpl');
|
||||||
|
$oModule->setLayoutFile('default_layout');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display contents
|
// Display contents
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
<action name="getMenuAdminItemInfo" type="model" standalone="true" />
|
<action name="getMenuAdminItemInfo" type="model" standalone="true" />
|
||||||
<action name="getMenuAdminSiteMap" type="model" standalone="true" />
|
<action name="getMenuAdminSiteMap" type="model" standalone="true" />
|
||||||
<action name="getMenuAdminInstalledMenuType" type="model" standalone="true" />
|
<action name="getMenuAdminInstalledMenuType" type="model" standalone="true" />
|
||||||
|
<action name="getMenuAdminDetailSetup" type="model" standalone="true" />
|
||||||
|
|
||||||
<action name="procMenuAdminInsert" type="controller" standalone="true" ruleset="insertMenu" />
|
<action name="procMenuAdminInsert" type="controller" standalone="true" ruleset="insertMenu" />
|
||||||
<action name="procMenuAdminUpdate" type="controller" standalone="true" ruleset="updateMenuTitle" />
|
<action name="procMenuAdminUpdate" type="controller" standalone="true" ruleset="updateMenuTitle" />
|
||||||
|
|
|
||||||
|
|
@ -399,6 +399,37 @@
|
||||||
$this->add('menuList', $menuList);
|
$this->add('menuList', $menuList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get module's detail setup contents
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function getMenuAdminDetailSetup()
|
||||||
|
{
|
||||||
|
$menuItemSrl = Context::get('menu_item_srl');
|
||||||
|
if(!$menuItemSrl)
|
||||||
|
{
|
||||||
|
return new Object(-1, 'msg_invalid_request');
|
||||||
|
}
|
||||||
|
|
||||||
|
$menuItemInfo = $this->getMenuItemInfo($menuItemSrl);
|
||||||
|
|
||||||
|
// if menu is shortcut
|
||||||
|
if($menuItemInfo->is_shortcut == 'Y')
|
||||||
|
{
|
||||||
|
return new Object(-1, 'msg_invalid_request');
|
||||||
|
}
|
||||||
|
|
||||||
|
// get module info
|
||||||
|
$oModuleModel = &getModel('module');
|
||||||
|
$moduleInfo = $oModuleModel->getModuleInfoByMid($menuItemInfo->url);
|
||||||
|
|
||||||
|
// get xml info
|
||||||
|
$moduleConfInfo = $oModuleModel->getModuleInfoXml($moduleInfo->module);
|
||||||
|
|
||||||
|
$setupUrl = getNotEncodedUrl('', 'module', 'admin', 'act', $moduleConfInfo->setup_index_act, 'module_srl', $moduleInfo->module_srl, 'isLayoutDrop', '1');
|
||||||
|
$this->add('setupUrl', $setupUrl);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting menu information(recursive)
|
* Setting menu information(recursive)
|
||||||
* @param array $menu
|
* @param array $menu
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue