« April 2011»
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...]

19.04.2011
21:36

RSS Feed with Image with TYPO3 t3blog Extension

Screenshot of RSS feed in Opera Browser

On Facebook some feeds of my blog are feeded automatically by the RSS Graffiti application. And I wonder for a while why the tt_news RSS feed contains the preview image but the t3blog RSS feed comes without it.

 

If find images with a short teaser much more interesting than only text. That's why I add an image.

 

I checked out the current class.rss.php from the forge.typo3.org repository. The developers changed a lot since the last release 1.0.0 and there is still no release 1.1.0. But this class didn't worked as expected because there is still a bug inside. So first I made a bugreport with a patch.

 

After this the content:encoded field was filled but the images where gone nevertheless. That's because they strip all  tags out of the description with the PHP function strip_tags(). So I added the -tag to the allowed tags in line 598:

 


 

 

$text = strip_tags($text, '<a><img><b><br><em><hr><i><li><ol><p><strong><ul>');

 

 

  •  
  • 0 Comment(s)
  •  

Your comment

Notify me when someone adds another comment to this post

back

[ 07.05.2012 ]