Open mynameisfreedom opened 3 weeks ago
currently the options for images and videos are global and take effect on every page in the collection. do i understand you correclty that you would like to have control over these as on a per page basis?
Hi @bnomei thank you for your fast response.
Well yes, I wanted to introduce some way for users to be able to exclude files from the sitemap, if they click on the toggle field in the file options in the panel. There are numerous situations why someone would like to exclude a specific file.
The toggle for the pages I showed in the main post works great.
Hi @bnomei!
As always your plugin is great, thank you for that 🙏
But I have one "issue".
I created a toggle field in templates, so I can exclude a page (and desirable images/videos too) from the sitemap, and my
$feed
looks like this:$feed = site()->index()->published()->filterBy('sitemap', '!=', 'false')->limit(50000)->sitemap($options);
And this works great for pages.
Is there maybe a way to exclude images or videos from the sitemap, with the toggle field added to file templates?