开发者

How to change Typo3 Backend layout Name using TypoScript?

By default typo3 Back end layout give Normal,Left,Right and Border.

To hide the blocks i used following code

mod.SHARED.colPos_list = 0,1,2 

How to rename the blocks in Typo script:

Normal - Description Left- News Right - Publ开发者_运维问答ications Border - Footer


When inserting the following in the Page TSConfig of the root page, the values of the dropdown "Columns" are changed when editing content elements:

TCEFORM.tt_content.colPos.altLabels {
    0 = News
    1 = Description
    2 = Publications
    3 = Footer
}

How to change Typo3 Backend layout Name using TypoScript?

Unfortunately, this is only halfway :(


According to Spalten ändern und umbenennen you'll need to edit typo3conf/extTables.php which affects all pages in the tree:

t3lib_extMgm::addPageTSConfig('  
    mod.SHARED.colPos_list = 0,1,2,3  
');  

$TCA["tt_content"]["columns"]["colPos"]["config"]["items"] = array (  
    "1" => array ("News||||||||||","1"),  
    "0" => array ("Description||||||||||","0"),  
    "3" => array ("Publications||||||||||","3"),  
    "2" => array ("Footer||||||||||","2"),  
);


If you're using TYPO3 4.5+, you can use the new feature called backend layout or grid view.

It is very easy to use. You don't have to edit PHP-code. You just have to configure it using a wizard.

Joey Hasenau has written a good article at news.typo3.org about how to use the backend layout.

I hope, this facilitates your daily work!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜