rss-l4
rss-l4 copied to clipboard
image caption attribute
Hello,
I have little information about rss feeds.My feeds are in the link " http://feed.sirtcantalilar.com " By your package I was able to add them to my site. Now I am trying to add captions and attributions of images but still cant get them with the microsofts http://appproducer.bing.com/AppBuilder/FeedMapper.. Is it possible to make it ? my route is
Route::get('/', function()
{
$feed = Rss::feed('2.0', 'UTF-8');
$feed->channel(array(
'title' => 'Sırtçantalılar blog yazıları',
'description' => 'Gezi rehberi. Yurtdışı ucuz tatil ve gezilecek yerler hakkında gezi rehberi tarzında hazırlanmış gezi yazıları içeren gezi ve seyahat sitesi.',
'link' => 'http://www.sirtcantalilar.com/'));
$posts = Post::with('thumbnail')->where('status', '=', 1)->get();
foreach ($posts as $post) {
$feed->item(array(
'title' => replace_tr($post->title),
'description|cdata' => (!empty($post->minicontent) ) ? $post->minicontent : (Str::words(strip_tags(replace_tr($post->content() )),50) ),
'guid' => $post->id,
'author' => replace_tr($post->author->name),
'media:content | cdata' => "http://www.sirtcantalilar.com/uploads/img/posts/thumbnails/".$post->id. "/thumb-" .$post->thumbnail->name,
'media:text' => $post->thumbnail->name,
'link' => 'http://www.sirtcantalilar.com/blog/'.$post->slug,
'pubdate' => $post->created_at,
'lastbuilddate' => $post->updated_at
));
}
$feed->save('uploads/blogs.xml');
return Response::make($feed, 200, array('Content-Type' => 'text/xml'));
});