[TYPO3-german] Front-End Plugin analog zu Text mit Bild
bernd wilke
x00nsji02 at sneakemail.com
Mon Jun 30 18:29:49 CEST 2008
Dr. Ronald P. Steiner schrieb am Mon, 30 Jun 2008 16:49:42 +0200:
> Hi Bernd,
>
> super, jetzt habe ich in der Tat genau die selbe Eingabe wie beim
> text-mit-bild CE.
> Vielleicht kannst Du mir auch noch sagen, wie ich ganz ohne Flex-Form im
> Reiter "General" wo auch der Header steht noch ein paar zusätzliche
> Eingabefelder definieren kann. Ich brauche zwei Datum-Felder und zwei
> Plain-Text Felder.
abhängig davon, ob du bestehende Felder oder neue Felder mit anzeigen
lassen willst:
bestehende Felder, die in "Text with pic" noch nicht benutzt werden:
sieh dir im TCA [1] die Konfiguration für das Contentelement an, das
dieses Feld schon benutzt und dann modifiziere den Konfigurationsstring
beim Kopieren. zb:
$TCA['tt_content']['types'][$_EXTKEY.'_pi1']['showitem']=str_replace
('image;;;;4-4-4,','image;;;;4-4-4,multimedia;;;;5-5-5,',$TCA
['tt_content']['types']['image']['showitem']);
Für neue Felder (oder alte Felder mit neuer Bezeichnung) musst du die TCA-
Konfiguration neu aufbauen. zb aus imagescroller:
$tempColumns = Array (
"tx_imagescroller_wraparound" => Array (
"exclude" => 1,
"label" => "LLL:EXT:imagescroller/
locallang_db.xml:tt_content.tx_imagescroller_wraparound",
"config" => Array (
"type" => "check",
)
),
"tx_imagescroller_initialmove" => Array (
"exclude" => 1,
"label" => "LLL:EXT:imagescroller/
locallang_db.xml:tt_content.tx_imagescroller_initialmove",
"config" => Array (
"type" => "input",
"size" => "5",
"max" => "4",
"checkbox" => "0",
"eval" => "int,nospace",
)
),
);
t3lib_extMgm::addTCAcolumns("tt_content",$tempColumns,1);
die Konfiguration wird analog zur Konfiguration von Flexforms aufgebaut.
basierend auf TCA-Definitionen, die man im Moment unter http://typo3.org/
documentation/document-library/core-documentation/doc_core_api/4.1.0/
view/4/2/ findet. (TYPO3 Core-API, Kapitel '$TCA array reference')
[1]
im BE: Links: 'admin tool' -> 'Configuration' -> '$TCA (tables.php)'
bernd
--
http://www.pi-phi.de/t3v4/cheatsheet.html
More information about the TYPO3-german
mailing list