Index: trunk/core/units/configuration/configuration_tag_processor.php =================================================================== diff -u -N -r4043 -r4052 --- trunk/core/units/configuration/configuration_tag_processor.php (.../configuration_tag_processor.php) (revision 4043) +++ trunk/core/units/configuration/configuration_tag_processor.php (.../configuration_tag_processor.php) (revision 4052) @@ -56,11 +56,23 @@ return $o; } - function PrintConfList($params){ - $list =& $this->Application->recallObject( $this->getPrefixSpecial(), $this->Prefix.'_List',$params); - $id_field = $this->Application->getUnitOption($this->Prefix,'IDField'); + function getModuleItemName() + { + $module = $this->Application->GetVar('module'); + $table = $this->Application->getUnitOption('confs', 'TableName'); - $list->PerPage=-1; + $sql = 'SELECT ConfigHeader + FROM '.$table.' + WHERE ModuleName = '.$this->Conn->qstr($module); + return $this->Conn->GetOne($sql); + } + + function PrintConfList($params) + { + $list =& $this->GetList($params); + $id_field = $this->Application->getUnitOption($this->Prefix, 'IDField'); + + $list->PerPage = -1; $list->Query(); $o = ''; $list->GoFirst(); @@ -77,8 +89,9 @@ $list->Records = $tmp_row; $block_params = $this->prepareTagParams($params); - $block_params['name'] = $params['block']; - + $block_params['name'] = $this->SelectParam($params, 'render_as,block'); + $block_params['module_key'] = $this->Application->GetLinkedVar('module_key'); + $block_params['module_item'] = $this->getModuleItemName(); $list->GoFirst(); return $this->Application->ParseBlock($block_params, 1);