[TYPO3-dev] Re: [Typo3-dev] Enabling formfields for a folder
Elmar Hinz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Sat Jan 14 17:50:45 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>I could not finish my solution today. I got new table requirements. So I
>>am back in the kickstarter phase again, for now.
>
>
> This is fair enough as your preference. So I suppose all we need are
> conditions as bernhard kraft suggested. He mentioned that you must know the
> page id. Since Page TSconfig is always requested by giving a page id I don't
> see how this could be a problem though. Maybe bernhard can tell...
>
I have my solution ready today. 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
iD8DBQFDySvlO976RNoy/18RAgEGAKCvl+L27smBH0B4yDD2ljGp0HgnyQCdGXfF
eoFXvpJeemFrFF2sD/n6s1s=
=8kRU
-----END PGP SIGNATURE-----
More information about the TYPO3-dev
mailing list