@@ -126,12 +126,21 @@ If you use these defaults you need to provide the fields `date (type: date)` and
126126``` php
127127[
128128 'urlfield' => 'url',
129- 'titlefield' => 'title',
130- 'textfield' => 'text',
131129 'modified' => time(),
132130 'snippet' => 'feed/sitemap'
133131 'mime' => null,
134132 'sort' => true,
133+ 'images' => false,
134+ 'imagesfield' => 'images',
135+ 'imagetitlefield' => 'title',
136+ 'imagecaptionfield' => 'caption',
137+ 'imagelicensefield' => 'license',
138+ 'videos' => false,
139+ 'videosfield' => 'videos',
140+ 'videotitlefield' => 'title',
141+ 'videothumbnailfield' => 'thumbnail',
142+ 'videodescriptionfield' => 'description',
143+ 'videourlfield' => 'url',
135144]
136145```
137146
@@ -162,7 +171,9 @@ return [
162171see [ Kirby Docs -Filtering compendium] ( https://getkirby.com/docs/cookbook/content/filtering )
163172
164173``` php
165- $feed = site()->index()->listed()->filterBy('template', '!=', 'excludeme')->limit(50000)->sitemap($options);
174+ $feed = site()->index()->listed()
175+ ->filterBy('template', '!=', 'excludeme')
176+ ->limit(50000)->sitemap($options);
166177```
167178
168179
0 commit comments