[TYPO3] Changing TCA for tt_news does not work ?
Peter Klein
peter at umloud.dk
Wed Jan 18 10:22:28 CET 2006
"Allan Jacobsen" <allan.jacobsen at tips.dk> skrev i en meddelelse
news:mailman.4799.1137574821.6406.typo3-english at lists.netfielders.de...
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';
Hi Allan. Maybe because you load the TCA for tt_content instead of tt_news?
Try changing
t3lib_div::loadTCA("tt_content");
to:
t3lib_div::loadTCA("tt_news");
--
Peter Klein/Umloud Untd
More information about the TYPO3-english
mailing list