[TYPO3] Changing TCA for tt_news does not work ?
Allan Jacobsen
allan.jacobsen at tips.dk
Wed Jan 18 10:40:23 CET 2006
Thanks, it works perfectly.
I was wondering why you had to load TCA for tt_content to change fe_user in the article, but it must one of the areas of TYPO3 that I have still to explore 8-).
Best regards/MVH
Allan Jacobsen
Infrastruktur, Dansk Tipstjeneste A/S
Korsdalsvej 135, 2605 Brøndby
-----Oprindelig meddelelse-----
Fra: typo3-english-bounces at lists.netfielders.de [mailto:typo3-english-bounces at lists.netfielders.de] På vegne af Peter Klein
Sendt: 18. januar 2006 10:22
Til: typo3-english at lists.netfielders.de
Emne: Re: [TYPO3] Changing TCA for tt_news does not work ?
"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
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list