Perry
1
Hello,
I have started using the RSS feed plugin ( GitHub - bnomei/kirby3-feed: Generate ATOM/JSON/RSS-Feed and XML-Sitemap from Pages-Collection ), but I am having problems creating the URL for the images.
The template looks like this:
<?php
$options = [
'title' => 'Carré Noir',
'description' => 'Carré Noir Programme',
'link' => (string)$pages->find('programm'),
'datefield' => 'from',
'images' => true,
'imagesfield' => 'cover',
'titlefield' => 'title'
];
echo $pages->find('programm')->children()->published()->sortBy('from', 'asc')->flip()->limit(100)->feed($options);
The image field in the blueprint:
cover:
label: Image
type: files
min: 1
max: 1
width: 1/2
translate: false
layout: cards
ratio: 16/9
Content file:
Cover: - file://4ukyl5GqpwfJkcXn
What did I miss?
texnixe
2
These are not valid options according to the plugin’s documentation. Where did you find this? I only see these options for the sitemap.
1 Like
Perry
3
Yes, you’re right, the image option is only for sitemaps. I’ll have to modify the plugin a little.
Thanks for your reply.
Perry
4
Perhaps my need is also the need of others.