« November 2010»
M T W T F S S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

[blog...]

01.11.2010
20:15

TYPO3 tt_news Doesn't Show Hidden News in Backend Preview

I'm using currently TYPO3 4.4.4 and tt_news 3.0.1. The last tt_news version is almost one year old now (its from 2009-12-02) and there are plenty of open, unassigned bugs. It seems to me that nobody is working on tt_news at the moment. But a lot of people are using it.

 

One of my customer asked me, why it is not possible to see the articles as preview in the backend. tt_news just tells you in SINGLE view: "no news_id given". Ok, I'm using realurl. But even when switching it off, tt_news still claims "Keine news_id übergeben." (German translation).

 

I found a bug report (15600) and a dirty hack for this issue. I changed this hack for my needs and it's working now for me. Of course it will get lost with the next update of tt_news but nobody knows when it will be updated :-(

 

 

// http://bugs.typo3.org/view.php?id=15600
if( is_object($GLOBALS['BE_USER'])){    
$suchmuster = '/AND \(?tt_news.hidden\=0\)?/';    
$this->enableFields = preg_replace($suchmuster, "", $this->getEnableFields('tt_news'));

 

 

} else {    
$this->enableFields = $this->getEnableFields('tt_news');
}
Alexander Bigga
Tags: typo3, tt_news
Views: 548
  •  
  • 0 Comment(s)
  •  

Your comment

Notify me when someone adds another comment to this post

back

[ 07.05.2012 ]