[TYPO3-dev] page individual $TCA WAS: Advises needed

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Sat Jan 14 17:25:44 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pierre Rouwens schrieb:
> Hi there,
> 
> I need to modify the tt_content TCA, but on different way depends on
> which page i am...
> For example in the home page : i need to add a column and change column
> names. For the others pages, changing the name of columns on different
> way from the home page.
> 
> Thanks in advance for any suggestions.
> 
> Pierre


I published an extension with a solution for this. The extension key is "elba".


Usage example:

pageTS: mod.web_txsbexampleM1.isUsedHere = 1

ext_tables.php


$tempColumns = [....]

t3lib_div::loadTCA("tt_address");
t3lib_extMgm::addTCAcolumns("tt_address", $tempColumns, 1);

require_once(t3lib_extMgm::extPath('elba') . 'class.tx_elba_be.php');

if(tx_elba_be::isUsedHere('web_txsbexampleM1')){

  $TCA['tt_address']['ctrl']['dividers2tabs'] = 1;
  $TCA['tt_address']['types'][1]['showitem'] = '

- --div--;LLL:EXT:sb_example/locallang_db.php:div.company,
hidden,
tx_sbexample_type;;;;1-1-1, company, tx_sbexample_branch, tx_sbexample_zone,
image, www,

- --div--;LLL:EXT:sb_example/locallang_db.php:div.description,
description,

- --div--;LLL:EXT:sb_example/locallang_db.php:div.person,
title, name, address, zip, city,
phone;;;;1-1-1, fax, mobile, email,


';
}


















Regards

Elmar

- --
Climate change 2006 is killing people: floods in California, drought and fires
in Australia, Texas, Sahel, Oklahoma, South Africa. The Bush administration is
responsible for corruption of the Kyoto Protocol. The US majority is responsible
to the world for reelection of a convictable [...censored by Echelon...].
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDySYHO976RNoy/18RAglIAJ9wrAPsJoNMvbMhj1gcso9V2XCi/wCfRZPn
K5e8vEMztIv7sWs8lbunSu0=
=ICMK
-----END PGP SIGNATURE-----




More information about the TYPO3-dev mailing list