[TYPO3-english] tt_news user funcs
    Dan Osipov 
    dosipov at phillyburbs.com
       
    Tue Oct 28 17:00:05 CET 2008
    
    
  
All user functions must have a prefix "user_", otherwise they will not 
execute.
Dan Osipov
Calkins Media
http://danosipov.com/blog/
Lamb, Brian wrote:
> I have added the following to a page that has a tt_news list item:
> 
>  
> 
> includeLibs.displayFileLinks =
> fileadmin/template/main/scripts/php/func.related_news.inc
> 
> plugin.tt_news.itemMarkerArrayFunc = related_news
> 
>  
> 
> func.related_news.inc:
> 
>  
> 
> <?php
> 
>   function related_news($markerArray, $conf) { 
> 
>     echo '<pre>'.print_r($markerArray, true).'</pre>'; exit;
> 
>   }
> 
> ?>
> 
>  
> 
> But it doesn't look like anything is happening. FWIW, I used the example
> in res/example_itemMarkerArrayFunc.php file and got nothing. 
> 
>  
> 
> What am I doing wrong? 
> 
    
    
More information about the TYPO3-english
mailing list