[TYPO3] Changing TCA for tt_news does not work ?
Allan Jacobsen
allan.jacobsen at tips.dk
Wed Jan 18 10:00:12 CET 2006
Hi
I am trying to change the behaviour of the archiving of tt_news, so that archiving works with both time and date, instead of only the date.
If I change the relevant entry in typo3conf/ext/tt_news/tca.php from 'date' to 'datetime' it works perfectly, but when I tried to make an extension, to do it the more 'correct' way, it does not work at all.
I looked at Zack's article on his website http://castironcoding.com/resources/typo3-tricks/single-typo3-tricks/
I created the extension and the ext_tables.php file only contains the 3 lines below, but when I install the extension the listing of tt_news items don't show their title, and editing is not possible, ie. When I press edit, I get a new page but the tt_news content is not shown on the page.
Does anyone know how to do this, or can point me to the relevant docs ?
if (!defined ("TYPO3_MODE")) die ("Access denied.");
t3lib_div::loadTCA("tt_content");
$TCA['tt_news']['columns']['archivedate']['config']['eval'] = 'datetime';
Best regards/MVH
Allan Jacobsen
Infrastruktur, Dansk Tipstjeneste A/S
Korsdalsvej 135, 2605 Brøndby
More information about the TYPO3-english
mailing list