|
@@ -37,6 +37,7 @@ use \MetaModel;
|
|
use \DBObjectSearch;
|
|
use \DBObjectSearch;
|
|
use \DBObjectSet;
|
|
use \DBObjectSet;
|
|
use \iPortalUIExtension;
|
|
use \iPortalUIExtension;
|
|
|
|
+use \ApplicationContext;
|
|
use \Combodo\iTop\Portal\Brick\AbstractBrick;
|
|
use \Combodo\iTop\Portal\Brick\AbstractBrick;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -406,6 +407,7 @@ class ApplicationHelper
|
|
'layout' => 'itop-portal-base/portal/src/views/layout.html.twig',
|
|
'layout' => 'itop-portal-base/portal/src/views/layout.html.twig',
|
|
'home' => 'itop-portal-base/portal/src/views/home/layout.html.twig'
|
|
'home' => 'itop-portal-base/portal/src/views/home/layout.html.twig'
|
|
),
|
|
),
|
|
|
|
+ 'urlmaker_class' => null,
|
|
'triggers_query' => null,
|
|
'triggers_query' => null,
|
|
'attachments' => array(
|
|
'attachments' => array(
|
|
'allow_delete' => true
|
|
'allow_delete' => true
|
|
@@ -433,6 +435,7 @@ class ApplicationHelper
|
|
switch ($oPropertyNode->nodeName)
|
|
switch ($oPropertyNode->nodeName)
|
|
{
|
|
{
|
|
case 'name':
|
|
case 'name':
|
|
|
|
+ case 'urlmaker_class':
|
|
case 'triggers_query':
|
|
case 'triggers_query':
|
|
$aPortalConf['properties'][$oPropertyNode->nodeName] = $oPropertyNode->GetText($aPortalConf['properties'][$oPropertyNode->nodeName]);
|
|
$aPortalConf['properties'][$oPropertyNode->nodeName] = $oPropertyNode->GetText($aPortalConf['properties'][$oPropertyNode->nodeName]);
|
|
break;
|
|
break;
|
|
@@ -539,6 +542,11 @@ class ApplicationHelper
|
|
$aPortalConf['ui_extensions'] = static::LoadUIExtensions($oApp);
|
|
$aPortalConf['ui_extensions'] = static::LoadUIExtensions($oApp);
|
|
// - Action rules
|
|
// - Action rules
|
|
static::LoadActionRulesConfiguration($oApp, $oDesign);
|
|
static::LoadActionRulesConfiguration($oApp, $oDesign);
|
|
|
|
+ // - Setting UrlMakerClass
|
|
|
|
+ if($aPortalConf['properties']['urlmaker_class'] !== null)
|
|
|
|
+ {
|
|
|
|
+ ApplicationContext::SetUrlMakerClass($aPortalConf['properties']['urlmaker_class']);
|
|
|
|
+ }
|
|
// - Generating CSS files
|
|
// - Generating CSS files
|
|
$aImportPaths = array($oApp['combodo.portal.base.absolute_path'] . 'css/');
|
|
$aImportPaths = array($oApp['combodo.portal.base.absolute_path'] . 'css/');
|
|
foreach ($aPortalConf['properties']['themes'] as $key => $value)
|
|
foreach ($aPortalConf['properties']['themes'] as $key => $value)
|