[TYPO3-english] Custom tab with custom fields in tt_news [SOLVED]
Iban
cardona at opus5.info
Fri Apr 4 09:11:26 CEST 2014
Hello,
I found this solution in my new extension:
ext_tables.sql
CREATE TABLE tt_news (
new_field varchar(255) DEFAULT '' NOT NULL
);
ext_tables.php
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
$tempColumns = Array (
"new_field" => Array (
"exclude" => 0,
"label" =>
"LLL:EXT:new_extension/locallang_db.xml:tt_news.new_field",
"config" => Array (
"type" => "input",
"size" => "15",
"max" => "255",
"eval" => "trim",
)
),
);
t3lib_div::loadTCA("tt_news");
t3lib_extMgm::addTCAcolumns("tt_news",$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes("tt_news","--div--;NewTab,new_field;;;;1-1-1",
"", "after:sys_language_uid");
?>
Best regards,
Iban.
El 03/04/2014 14:33, Iban escribió:
> Hello,
>
> I would like to add new tab in tt_news with my own extension.
> I would like that when we create a new in the backend, new tab with
> custom fields would appear...
>
> Could you help me?
>
> Best regards,
> Iban.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
--
*Iban Cardona
opus5 · inteligencia online, soluciones internet.
*ronda sant antoni 51, 1o 2a, E-08011 barcelona
tel: +34 93 289 07 30 fax: + 34 93 289 07 29
email: cardona at opus5.info <mailto:cardona at opus5.info> ·url:
www.opus5.info <http://www.opus5.info>
More information about the TYPO3-english
mailing list