[TYPO3-ttnews] tt_news category question
Oliver Rowlands
oliver at liquidlight.co.uk
Sat Nov 24 15:11:49 CET 2007
Hi Ercan,
You have two options:
- Extend tt_news using the 'extraItemMarkerHook' hook in order to
override the '###TEXT_CAT###' marker if no categories have been selected.
- Force the selection of at least one category by altering the
validation of the category field. This can be done by adding the
following lines to your 'typo3conf/extTables.php' file:
t3lib_div::loadTCA('tt_news');
$TCA['tt_news']['columns']['category']['config']['minitems'] = 1;
Hope this helps,
Oliver
Ercan Karadeniz wrote:
> Hi All,I have got a question regarding tt_news.The default behaviour of tt_news extension is,if a news entry has no category the category marker (###NEWS_CATEGORY###) isreplace with a empty string.e.g:=> category: TYPO3if no category define=> category:How can I define a default text for if no category is defined?Thanks in advance!Regards,Ercan Karadeniz
> _________________________________________________________________
> Schnell, einfach und kostenlos auf Windows Live™ Hotmail umsteigen!
> http://g.msn.com/8HMBEN/14811??PS=
--
Oliver Rowlands
:: Liquid Light ::
E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk
T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35
More information about the TYPO3-project-tt-news
mailing list