[TYPO3-english] Page types and indexed search
    Tapio Markula 
    tapio.markula at xetpoint.fi
       
    Wed Mar 18 14:47:45 CET 2009
    
    
  
Mathias Schreiber
> There is a "clean" hack.
> I suppose you have config.index_enable set to 1.
> Use a specific config section für your indexing setup.
> 
> like page.config.index_enable = 1
> 
> OR
> 
> disable indexing for the plaintext type
> 
> plaintext.config.index_enable = 0 (never did this and unsure, if it works)
Can't use that and I found solution
I would have been able to create a hook but I hacked directly
class.tx_indexedsearch.php
function printResultRow($row, $headerOnly=0)    {
             // Get template content:
         $tmplContent = $this->prepareResultRowTemplateData($row, 
$headerOnly);
         // I wrapped entere content rendering with an additional 
conditions.
         if((!t3lib_div::_GET('type') && !$row['data_page_type']) || 
(t3lib_div::_GET('type')=='99' && $row['data_page_type']=='99')) {
proper solution is to use the hook
if ($hookObj = &$this->hookRequest('printResultRow'))	{
			return $hookObj->printResultRow($row, $headerOnly, $tmplContent);
		}
    
    
More information about the TYPO3-english
mailing list