[TYPO3-english] Add or remove custom columns in Pagecontent

jochem nabuurs jochem at roquin.nl
Mon Apr 19 17:09:42 CEST 2010


ktt wrote:
> Hello,
> 
> I there any extension to add or remove custom columns in a TYPO3 Pagecontent (backend)/
> 
> Regards,
> Ktt
> 
> 
>       
> 
If you are referring to the default "Normal", "Left", "Right" and 
"Border" content columns in TPYO3, you dont need an extension for that.
It's possible to remove these, or create custom columns with TypoScript 
and a bit of PHP.

Add this to your extTables.php file:

$TCA["tt_content"]["columns"]["colPos"]["config"]["items"] = array (
	"0" => array ("Content Main||Content Main||||||||","0"),
	"1" => array ("Image teaser||Image teaser||||||||","1"),
	"2" => array ("Right column||Right column||||||||","2"),
	"3" => array ("BG images||BG images||||||||","3"),
	"4" => array ("Teaser||Teaser||||||||","4")
);


If you want to remove any columns, add the following page TSconfig to 
your installation by editing the page properties of the root page, and 
select the tab "options":

TCEFORM.tt_content {

     	// Remove content colums in backend
     	// 0 = main
     	// 1 = left
     	// 2 = right
	// 3 = bg images
	colPos {
		removeItems = 0,1
	}
}


Then, activate the columns in the backend by adding/changing this line 
of code:

mod.web_layout.tt_content.colPos_list = 0,1,2,3

This limits the columns shown in the backend to the columns with the 
id's given.

Read more about this topic here:
http://typo3.org/documentation/document-library/references/doc_core_tsconfig/4.1.0/view/1/3/#id3959261
http://typo3.org/documentation/document-library/references/doc_core_tsconfig/4.1.0/view/1/3/#id3983057

Kind regards,

Jochem Nabuurs

Roquin E-Solutions






More information about the TYPO3-english mailing list