Index: trunk/kernel/units/configuration/configuration_tag_processor.php
===================================================================
diff -u -r4653 -r4808
--- trunk/kernel/units/configuration/configuration_tag_processor.php (.../configuration_tag_processor.php) (revision 4653)
+++ trunk/kernel/units/configuration/configuration_tag_processor.php (.../configuration_tag_processor.php) (revision 4808)
@@ -3,6 +3,12 @@
class ConfigurationTagProcessor extends kDBTagProcessor {
+ function Init($prefix,$special,$event_params=null)
+ {
+ parent::Init($prefix, $special, $event_params);
+ $this->Application->LinkVar('module_key');
+ }
+
/**
* Prints list content using block specified
*
@@ -98,14 +104,19 @@
$block_params = $this->prepareTagParams($params);
$block_params['name'] = $this->SelectParam($params, 'render_as,block');
- $block_params['module_key'] = $this->Application->GetLinkedVar('module_key');
+ $block_params['module_key'] = $this->Application->GetVar('module_key');
$block_params['module_item'] = $this->getModuleItemName();
$list->GoFirst();
return $this->Application->ParseBlock($block_params, 1);
}
+ function ShowRelevance($params)
+ {
+ return $this->Application->GetVar('module_key') != '_';
+ }
+
function ConfigValue($params)
{
return $this->Application->ConfigValue($params['name']);
Index: trunk/core/units/configuration/configuration_tag_processor.php
===================================================================
diff -u -r4653 -r4808
--- trunk/core/units/configuration/configuration_tag_processor.php (.../configuration_tag_processor.php) (revision 4653)
+++ trunk/core/units/configuration/configuration_tag_processor.php (.../configuration_tag_processor.php) (revision 4808)
@@ -3,6 +3,12 @@
class ConfigurationTagProcessor extends kDBTagProcessor {
+ function Init($prefix,$special,$event_params=null)
+ {
+ parent::Init($prefix, $special, $event_params);
+ $this->Application->LinkVar('module_key');
+ }
+
/**
* Prints list content using block specified
*
@@ -98,14 +104,19 @@
$block_params = $this->prepareTagParams($params);
$block_params['name'] = $this->SelectParam($params, 'render_as,block');
- $block_params['module_key'] = $this->Application->GetLinkedVar('module_key');
+ $block_params['module_key'] = $this->Application->GetVar('module_key');
$block_params['module_item'] = $this->getModuleItemName();
$list->GoFirst();
return $this->Application->ParseBlock($block_params, 1);
}
+ function ShowRelevance($params)
+ {
+ return $this->Application->GetVar('module_key') != '_';
+ }
+
function ConfigValue($params)
{
return $this->Application->ConfigValue($params['name']);
Index: trunk/kernel/admin_templates/config/config_search.tpl
===================================================================
diff -u -r4807 -r4808
--- trunk/kernel/admin_templates/config/config_search.tpl (.../config_search.tpl) (revision 4807)
+++ trunk/kernel/admin_templates/config/config_search.tpl (.../config_search.tpl) (revision 4808)
@@ -72,7 +72,6 @@