[TYPO3-english] Organizing tabs and fields in tt_news
Steffen Gebert
steffen at steffen-gebert.de
Tue Nov 16 11:46:44 CET 2010
On 16.11.10 11:03, Morten Kjems wrote:
> We just upgraded to tt_news 3.0.1.
>
> Everything is fine but the tabs and fields are organized different than
> previous versions.
>
> Is there a way to define which fields are shown in in each tab?
Place this in extTables.php or in ext_tables.php of a custom extension.
The comment shows the default value from tt_news. The TCA line is our
changed configuration - just move the fields coming from the default
value around.
> <?php
> t3lib_div::loadTCA('tt_news');
>
> // type;;;;1-1-1, title;;;;2-2-2, short, bodytext;;2;richtext:rte_transform[flag=rte_enabled|mode=ts];4-4-4, --div--;LLL:EXT:tt_news/locallang_tca.xml:tt_news.tabs.special, datetime;;;;2-2-2, archivedate, author;;;;2-2-2, author_email, keywords;;;;2-2-2, sys_language_uid;;1;;3-3-3, --div--;LLL:EXT:tt_news/locallang_tca.xml:tt_news.tabs.media, image;;;;1-1-1, imagecaption;;5;;, links;;;;2-2-2, news_files;;;;4-4-4, --div--;LLL:EXT:tt_news/locallang_tca.xml:tt_news.tabs.catAndRels, category;;;;3-3-3, tx_dmmnewsfields_live;;;;1-1-1, related;;;;3-3-3, --div--;LLL:EXT:tt_news/locallang_tca.xml:tt_news.tabs.access, hidden, starttime, endtime, fe_group, editlock, --div--;LLL:EXT:tt_news/locallang_tca.xml:tt_news.tabs.extended, tx_ncttnewsmostpopular_counter, tx_commentsic_disable;;;;1-1-1, tx_commentsic_closetime,tx_rgmediaimages_config;;53;;1-1-1,tx_rgmediaimages_caption;;54;;, tx_stgttnewsad_no_ad;;;;1-1-1
> $GLOBALS['TCA']['tt_news']['types'][0]['showitem'] = 'type;;;;1-1-1, hidden, title;;;;2-2-2, category,short, bodytext;;2;richtext:rte_transform[flag=rte_enabled|mode=ts];4-4-4,--div--;Bilder, image;;;;1-1-1, imagecaption;;5;;tx_rgnewsimg_design_single;;;;1-1-1,tx_rgnewsimg_design_latest,tx_rgnewsimg_design_list,--div--;Verbindungen;;;;3-3-3, links;;;;2-2-2,related;;;;3-3-3,--div--;Erweitert,tx_stgttnewsad_no_ad;;;;1-1-1,tx_ncttnewsmostpopular_counter;;;;1-1-1,author;;;;1-1-1, keywords;;;;1-1-1,tx_vfmnewsfields_live;;;;1-1-1, editlock;;;;2-2-2, sys_language_uid;;1;;3-3-3,tx_commentsic_disable;;;;1-1-1, tx_commentsic_closetime,--div--;Datum/Zeit,datetime, archivedate, starttime, endtime, fe_group, --div--;Videos/Downloads,tx_rgmediaimages_config;;53;;1-1-1,tx_rgmediaimages_caption;;54;;,news_files;;;;4-4-4';
> ?>
Kind regards
Steffen
--
Steffen Gebert
TYPO3 Core Team Member
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-english
mailing list