bnomei / kirby3-feed

Generate a RSS/JSON-Feed and Sitemap from a Pages-Collection.
https://forum.getkirby.com/t/kirby3-feed-rss-json-sitemap/23574
MIT License
62 stars 7 forks source link

item->link #18

Closed strukturart closed 5 years ago

strukturart commented 5 years ago

Hello, item-> link is not created I use the template variant, what am I doing wrong?

<?php
$options = [
      'url' => site()->url(),
    'feedurl' => site()->url() . '/rss-feed/',
    'title' => 'Feed',
    'description' => 'news feed',
    'link' => '/rss-feed/',
    'urlfield' => 'url',
    'datefield' => 'date_event_start',
    'textfield' => 'text_short',
    'modified' => time(),
    'snippet' => 'feed/rss', // 'feed/json'
    'mime' => null,
    'sort' => true,
];
echo page('news')->children()->visible()->flip()->limit(10)->feed($options);
bnomei commented 5 years ago

https://github.com/bnomei/kirby3-feed/releases/tag/v1.3.4

bnomei commented 5 years ago

@strukturart thanks for reporting. my options logic was too "clever" using callables on all options. i removed that and the feed is now valid again.