Index: ext_tables.sql =================================================================== --- ext_tables.sql (revision 27355) +++ ext_tables.sql (working copy) @@ -33,6 +33,7 @@ rendertype_ref int(11) unsigned DEFAULT '0' NOT NULL, localprocessing text, fileref_md5 varchar(32) DEFAULT '' NOT NULL, + belayout tinytext, PRIMARY KEY (uid), KEY t3ver_oid (t3ver_oid,t3ver_wsid), @@ -65,7 +66,8 @@ dataprot mediumtext, scope tinyint(4) unsigned DEFAULT '0' NOT NULL, previewicon tinytext, - + belayout tinytext, + PRIMARY KEY (uid), KEY t3ver_oid (t3ver_oid,t3ver_wsid), KEY parent (pid) Index: locallang_db.xml =================================================================== --- locallang_db.xml (revision 27355) +++ locallang_db.xml (working copy) @@ -14,6 +14,7 @@ + Index: mod1/index.php =================================================================== --- mod1/index.php (revision 27355) +++ mod1/index.php (working copy) @@ -845,6 +845,8 @@ $beTemplate = ''; $flagRenderBeLayout = false; + + // Define l/v keys for current language: $langChildren = intval($elementContentTreeArr['ds_meta']['langChildren']); $langDisable = intval($elementContentTreeArr['ds_meta']['langDisable']); @@ -859,8 +861,21 @@ $headerCells = array(); // gets the layout + // deprecated, use TO or DS record fields instead $beTemplate = $elementContentTreeArr['ds_meta']['beLayout']; + // get used TO + $to = $this->apiObj->getContentTree_fetchPageTemplateObject($this->rootElementRecord); + if ($to['belayout']) { + $beTemplate = t3lib_div::getURL(PATH_site . $to['belayout']); + } else { + // when TO doesn't have the beLayout look in DS record + $dsBeLayout = t3lib_BEfunc::getRecord('tx_templavoila_datastructure', $to['datastructure'], 'belayout'); + if ($dsBeLayout['belayout']) { + $beTemplate = t3lib_div::getURL(PATH_site . $dsBeLayout['belayout']); + } + } + // no layout, no special rendering $flagRenderBeLayout = $beTemplate? TRUE : FALSE; Index: tca.php =================================================================== --- tca.php (revision 27355) +++ tca.php (working copy) @@ -97,6 +97,30 @@ 'softref' => 'typolink' ) ), + 'belayout' => Array ( + 'exclude' => 1, + 'label' => 'LLL:EXT:templavoila/locallang_db.xml:tx_templavoila_tmplobj.belayout', + 'config' => Array ( + 'type' => 'input', + 'size' => '48', + 'wizards' => Array( + '_PADDING' => 2, + 'link' => Array( + 'type' => 'popup', + 'title' => 'Link', + 'icon' => 'link_popup.gif', + 'script' => 'browse_links.php?mode=wizard&act=file', + 'params' => array( + 'blindLinkOptions' => 'page,folder,mail,spec,url', + 'allowedExtensions' => $TYPO3_CONF_VARS['SYS']['textfile_ext'], + ), + 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1' + ), + ), + 'eval' => 'nospace', + 'softref' => 'typolink' + ) + ), 'previewicon' => Array( 'label' => 'LLL:EXT:templavoila/locallang_db.xml:tx_templavoila_tmplobj.previewicon', 'displayCond' => 'REC:NEW:false', @@ -160,8 +184,8 @@ ), ), 'types' => Array ( - '0' => Array('showitem' => 'title;;;;2-2-2, parent, fileref, datastructure;;;;3-3-3, rendertype_ref, previewicon, description, localprocessing;;;;1-1-1'), - '1' => Array('showitem' => 'title;;;;2-2-2, parent, fileref, sys_language_uid;;;;3-3-3, rendertype,localprocessing;;;;1-1-1') + '0' => Array('showitem' => 'title;;;;2-2-2, parent, fileref, belayout, datastructure;;;;3-3-3, rendertype_ref, previewicon, description, localprocessing;;;;1-1-1'), + '1' => Array('showitem' => 'title;;;;2-2-2, parent, fileref, belayout, sys_language_uid;;;;3-3-3, rendertype,localprocessing;;;;1-1-1') ) ); @@ -219,9 +243,33 @@ 'minitems' => '0' ) ), + 'belayout' => Array ( + 'exclude' => 1, + 'label' => 'LLL:EXT:templavoila/locallang_db.xml:tx_templavoila_tmplobj.belayout', + 'config' => Array ( + 'type' => 'input', + 'size' => '48', + 'wizards' => Array( + '_PADDING' => 2, + 'link' => Array( + 'type' => 'popup', + 'title' => 'Link', + 'icon' => 'link_popup.gif', + 'script' => 'browse_links.php?mode=wizard&act=file', + 'params' => array( + 'blindLinkOptions' => 'page,folder,mail,spec,url', + 'allowedExtensions' => $TYPO3_CONF_VARS['SYS']['textfile_ext'], + ), + 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1' + ), + ), + 'eval' => 'nospace', + 'softref' => 'typolink' + ) + ), ), 'types' => Array ( - '0' => Array('showitem' => 'title;;;;2-2-2, scope, previewicon, dataprot;;;;3-3-3') + '0' => Array('showitem' => 'title;;;;2-2-2, scope, previewicon, belayout, dataprot;;;;3-3-3') ) );