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

@ -118,6 +118,35 @@
}
Context::set('menu_list', $output);
// get installed module list
$oModuleModel = &getModel('module');
$output = $oModuleModel->getModuleList();
if(is_array($output))
{
$installedModuleList = array();
foreach($output AS $key=>$value)
{
array_push($installedModuleList, $value->module);
}
$useModuleList = array('board', 'forum', 'wiki', 'page');
}
$resultModuleList = array_intersect($installedModuleList, $useModuleList);
Context::set('module_list', $resultModuleList);
// get default group list
$oMemberModel = &getModel('member');
$output = $oMemberModel->getGroups();
if(is_array($output))
{
$groupList = array();
foreach($output AS $key=>$value)
{
$groupList[$value->group_srl]->group_srl = $value->group_srl;
$groupList[$value->group_srl]->title = $value->title;
}
}
Context::set('group_list', $groupList);
$this->setTemplateFile('sitemap');
}