[TYPO3-ttnews] tt_news extend

Don Benjamin don at 3ev.com
Mon Oct 23 11:07:05 CEST 2006


Hi Pierre,

You can use the selectConfHook this allows you to edit the parameters
used for the select query when generating listings.  You can specify a
class to be used for preprocessing the parameters.

in ext_localconf.php:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['selectConfHook'][]
= '<your_file.php>:&<your_class>';

then in your_file.php:
 
class your_class {
	function processSelectConfHook($this, $selectConf)      {
		// make whatever changes you need to the selectConf
		$selectConf['where'] .= " AND title like '%$string%' ";
		
		return $selectConf;
	}
}

I'm not sure how this interacts with the search functionality but it
certainly works on the standard listing screens.

Hope that helps,

Don


3rd Eye Vision
http://www.3ev.com


On Fri, 2006-10-20 at 15:03 -0400, Pierre Rouwens wrote:
> Hi there,
> 
> I need some advices, i have to replace the search functionnality of 
> tt_news. I need a more complex one.
> What is the best way to achieve this ?
> via Xclass or what else ?
> 
> Thanks a lot
> 
> Pierre




More information about the TYPO3-project-tt-news mailing list