You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there appears no way of overriding the feed plugin's feed.(rss|atom|json).twig feeds, due to how the feed plugin processes it's onPageInitialized function.
Could the plugin allow an override, either maybe from a header k:v config setting or maybe based upon the current page template?
I'd be happy to submit a PR
The text was updated successfully, but these errors were encountered:
I agree that the “catch-all” approach of the feed plugin is problematic.
If a theme or plugin wants to create a custom template_name.(rss|atom).twig file, it does not work. This is always the feed plugin that has the upper hand.
The PR #67 is a way to circumvent this behaviour (thank you @jgonyea).
I think a better solution would be for the plugin itself to check if there is already a template Grav calculated. But is this possible at all? Grav already has all the good mechanics. It is just that the feed plugin is doing too much. It should kick in only if there are no existing matching templates. If there is one, the default mechanism of Grav should be allowed to work.
Currently, there appears no way of overriding the feed plugin's feed.(rss|atom|json).twig feeds, due to how the feed plugin processes it's onPageInitialized function.
Could the plugin allow an override, either maybe from a header k:v config setting or maybe based upon the current page template?
I'd be happy to submit a PR
The text was updated successfully, but these errors were encountered: