Index: branches/RC/core/units/content/content_config.php =================================================================== diff -u -N -r11610 -r11760 --- branches/RC/core/units/content/content_config.php (.../content_config.php) (revision 11610) +++ branches/RC/core/units/content/content_config.php (.../content_config.php) (revision 11760) @@ -1,58 +1,53 @@ 'content', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'kDBEventHandler','file'=>'','build_event'=>'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), - 'AutoLoad' => true, - 'QueryString' => Array( - 1 => 'id', - 2 => 'Page', - 3 => 'event', - 4 => 'mode', - ), - 'IDField' => 'PageContentId', - 'ParentTableKey'=> 'CategoryId', // linked field in master table - 'ForeignKey' => 'PageId', // linked field in subtable - 'ParentPrefix' => 'c', - 'AutoDelete' => true, - 'AutoClone' => true, + $config = Array ( + 'Prefix' => 'content', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'ContentEventHandler', 'file' => 'content_eh.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), + 'AutoLoad' => true, + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'event', + 4 => 'mode', + ), - 'TitleField' => 'ContentNum', // field, used in bluebar when editing existing item + 'IDField' => 'PageContentId', + 'ParentTableKey' => 'CategoryId', // linked field in master table + 'ForeignKey' => 'PageId', // linked field in subtable + 'ParentPrefix' => 'c', + 'AutoDelete' => true, + 'AutoClone' => true, - 'ViewMenuPhrase' => 'la_text_Pages', + 'TitleField' => 'ContentNum', // field, used in bluebar when editing existing item + 'ViewMenuPhrase' => 'la_text_Pages', + 'TitlePhrase' => 'la_text_PageContent', - 'TitlePhrase' => 'la_text_PageContent', + 'TitlePresets' => Array ( + 'default' => Array ( + 'new_status_labels' => Array ('content' => '!la_title_Adding_Content!'), + 'edit_status_labels' => Array ('content' => '!la_title_Editing_Content!'), + ), + 'content_edit' => Array ('prefixes' => Array ('content'), 'format' => '#content_status# - !la_title_General!'), + ), - 'TitlePresets' => Array( - 'default' => Array( 'new_status_labels' => Array('content'=>'!la_title_Adding_Content!'), - 'edit_status_labels' => Array('content'=>'!la_title_Editing_Content!'), - 'new_titlefield' => Array('content'=>''), - ), - 'content_edit' => Array('prefixes' => Array('content'), 'format' => '#content_status# - !la_title_General!'), - ), + 'TableName' => TABLE_PREFIX . 'PageContent', - 'TableName' => TABLE_PREFIX.'PageContent', + 'ListSQLs' => Array ('' => 'SELECT * FROM %s'), + 'ListSortings' => Array ( + '' => Array ( + 'Sorting' => Array ('ContentNum' => 'asc'), + ) + ), -// 'PermSection' => Array('main' => 'CATEGORY:in-portal:structure', ), + 'Fields' => Array ( + 'PageContentId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ContentNum' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'PageId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Content' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'format' => 'no_default', 'using_fck' => 1, 'default' => ''), + 'Translated' => Array ('type' => 'int', 'formatter' => 'kMultiLanguage', 'not_null' => 1, 'default' => 0, 'db_type' => 'tinyint', 'index_type' => 'int'), + ), - 'ListSQLs' => Array('' => 'SELECT * FROM %s'), // key - special, value - list select sql - 'ListSortings' => Array( - '' => Array( - 'Sorting' => Array('ContentNum' => 'asc'), - ) - ), - 'ItemSQLs' => Array('' => 'SELECT * FROM %s'), - - 'Fields' => Array ( - 'PageContentId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ContentNum' => Array('type' => 'int','not_null' => 1, 'default' => 0), - 'PageId' => Array('type' => 'int','not_null' => 1, 'default' => 0), - 'Content' => Array('type' => 'string','formatter'=>'kMultiLanguage', 'format'=>'no_default', 'default' => ''), - 'Translated' => Array ('type' => 'int', 'formatter' => 'kMultiLanguage', 'not_null' => 1, 'default' => 0, 'db_type' => 'tinyint', 'index_type' => 'int'), - ), - ); -?> \ No newline at end of file