issue 70 site map developement.

but yet not completed


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8965 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-08-31 08:18:48 +00:00
parent 5cd8e57f0e
commit ae48547676
7 changed files with 256 additions and 41 deletions

View file

@ -115,6 +115,27 @@
$menuItemSrl = Context::get('menu_item_srl');
$menuItem = $this->getMenuItemInfo($menuItemSrl);
if(!$menuItem->url)
{
$menuItem->moduleType = null;
}
else if(!preg_match('/^http/i',$menuItem->url))
{
$oModuleModel = &getModel('module');
$moduleInfo = $oModuleModel->getModuleInfoByMid($menuItem->url);
if($moduleInfo->mid == $menuItem->url) {
$menuItem->moduleType = $moduleInfo->module;
//$menuItem->module_id = $moduleInfo->mid;
//$menuItem->browser_title = $moduleInfo->browser_title;
//unset($menuItem->url);
}
}
else
{
$menuItem->moduleType = 'url';
/*$menuItem->url = preg_replace('/^(http|https):\/\//i','',$menuItem->url);*/
}
// get groups
$oMemberModel = &getModel('member');
$output = $oMemberModel->getGroups();