[TYPO3-UG Oesterreich] Zusätzliches Feld in tt_content
Widmann, Manfred
mpunktw at gmx.net
Wed Apr 11 21:23:22 CEST 2007
"Wolfgang Klinger" <wolfgang at stufenlos.net> schrieb im Newsbeitrag
news:mailman.137373.1176319055.21067.typo3-at at lists.netfielders.de...
Hallo,
Widmann, Manfred wrote:
> Ich habe mit dem Kickstarter eine Extension erstellt, die der tt_content
> zwei Felder (teaseme & teasertext) hinzufügt. Leider kann ich die im
> Backend
> nicht warten - ich bekomme im üblichen Formular einfach keine
> Eingabefelder
> für teasme und teasertext... was mach' ich falsch?
- Extension installiert und aktiviert? ;-)
- Temporäre Dateien in typo3conf gelöscht?
- welche TYPO3 Version
- poste ein paar Details aus der Extension (ext_tables.php,
ext_localconf.php, etc.)
lg
Wolfgang
Hi Wolfgang!
Gerne:
ext_localconf.php
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
## Extending TypoScript from static template uid=43 to set up userdefined
tag:
t3lib_extMgm::addTypoScript($_EXTKEY,'editorcfg','
tt_content.CSS_editor.ch.tx_wmcontentteaser_pi1 = <
plugin.tx_wmcontentteaser_pi1.CSS_editor
',43);
t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_wmcontentteaser_pi1.php','_pi1','list_type',0);
?>
ext_tables.php
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
$tempColumns = Array (
"tx_wmcontentteaser_teaseme" => Array (
"exclude" => 0,
"label" =>
"LLL:EXT:wm_contentteaser/locallang_db.xml:tt_content.tx_wmcontentteaser_teaseme",
"config" => Array (
"type" => "check",
"cols" => 4,
"items" => Array (
Array("LLL:EXT:wm_contentteaser/locallang_db.xml:tt_content.tx_wmcontentteaser_teaseme.I.0",
""),
),
)
),
"tx_wmcontentteaser_teasertext" => Array (
"exclude" => 0,
"label" =>
"LLL:EXT:wm_contentteaser/locallang_db.xml:tt_content.tx_wmcontentteaser_teasertext",
"config" => Array (
"type" => "input",
"size" => "30",
)
),
);
t3lib_div::loadTCA("tt_content");
t3lib_extMgm::addTCAcolumns("tt_content",$tempColumns,1);
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1']='layout,select_key';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1']='tx_wmcontentteaser_teaseme;;;;1-1-1,
tx_wmcontentteaser_teasertext';
t3lib_extMgm::addPlugin(array('LLL:EXT:wm_contentteaser/locallang_db.xml:tt_content.list_type_pi1',
$_EXTKEY.'_pi1'),'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY,"pi1/static/","Content Teaser");
?>
More information about the TYPO3-at
mailing list