[TYPO3-german] TCA - Feld einer Extension after:subtitle positionieren

Josef Florian Glatz typo3 at josdesign.at
Fri Feb 18 17:44:35 CET 2011


Am 18.02.2011 13:34, schrieb Josef Florian Glatz:
> Am 18.02.2011 12:54, schrieb Josef Florian Glatz:
>> Hallo Leute,
>>
>> Ich bin auf Kriegsfuß mit TCA und dessen Konfiguration. Ich habe schon
>> etliches darüber gelesen habe es aber seit mehreren Monaten nicht
>> geschafft eine Checkbox meiner Extensions innerhalb von pages nach dem
>> Feld subtitle zu setzen, damit die Checkbox am ersten Reiter der
>> Seiteneigenschaften ist.
>>
>> Hat jemand evtl einen Tipp wie ich das umsetzen kann?
>>
>> Meine ext_tables.php:
>>
>> <?php
>> if (!defined ('TYPO3_MODE')) {
>> die ('Access denied.');
>> }
>> $tempColumns = array (
>> 'tx_selectpageinlightbox_check' => array (
>> 'exclude' => 0,
>> 'label' =>
>> 'LLL:EXT:selectpageinlightbox/locallang_db.xml:pages.tx_selectpageinlightbox_check',
>>
>>
>> 'config' => array (
>> 'type' => 'check',
>> )
>> ),
>> );
>>
>>
>> t3lib_div::loadTCA('pages');
>> t3lib_extMgm::addTCAcolumns('pages',$tempColumns,1);
>> //
>> t3lib_extMgm::addToAllTCAtypes('pages','tx_selectpageinlightbox_check;;;;1-1-1');
>>
>> # default
>> t3lib_extMgm::addToAllTCAtypes('pages', 'tx_portfolioenabler_enable',
>> '', 'after:subtitle');
>> ?>
>>
>> Mit bestem Dank im Voraus
>
> Ich hab es jetzt geschafft mit folgendem Code:
>
> t3lib_div::loadTCA('pages');
> t3lib_extMgm::addTCAcolumns('pages',$tempColumns,1);
> t3lib_extMgm::addToAllTCAtypes('pages', 'tx_selectpageinlightbox_check',
> '1,4,5', 'after:nav_hide');
>
> Ich hab also auch angegeben das die Box erscheint für Seitentypen vom
> Typ Standard, Verweis und BackenduserSeite.
>
> Allerdings ist bei Seiten vom Typ Verweis die Box dennoch versteckt.
> Muss ich die speziell freigeben?
>
> Mit bestem Dank im Voraus!
>

Selbst ist der Mann:

<?php
if (!defined ('TYPO3_MODE')) {
	die ('Access denied.');
}
$tempColumns = array (
	'tx_selectpageinlightbox_check' => array (		
		'exclude' => 0,		
		'label' => 
'LLL:EXT:selectpageinlightbox/locallang_db.xml:pages.tx_selectpageinlightbox_check', 
	
		'config' => array (
			'type' => 'check',
		)
	),
);


t3lib_div::loadTCA('pages');
t3lib_extMgm::addTCAcolumns('pages',$tempColumns,1);
//t3lib_extMgm::addToAllTCAtypes('pages','tx_selectpageinlightbox_check;;;;1-1-1'); 
# default
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_selectpageinlightbox_check', 
'1,3,4,5', 'after:nav_hide');
?>

-- 
Regards,
Josef Florian Glatz


More information about the TYPO3-german mailing list