getgrav / grav-plugin-feed

Grav Feed Plugin
https://getgrav.org
MIT License
16 stars 11 forks source link

Feeds for different collections #52

Open jeremycherfas opened 4 years ago

jeremycherfas commented 4 years ago

My site https://jeremycherfas.net/ has at least two different collections, but the RSS feed is the same for both. One collection is

    items:
        '@taxonomy.category': stream

The other is

    items:
        '@taxonomy.category': blog

And each of those displays fine on its listing page. But the feed contains only '@taxonomy.category': blog.

Is there some way I can offer a different feed for the different collections?

Thanks.

rhukster commented 4 years ago

Hmm... this should work, but i need to test it.

jeremycherfas commented 4 years ago

I did a little more investigating myself. It's actually more complex than I originally thought. What seems to be happening is that the actual address for the feeds is inconsistent between the different pages.

On https://www.jeremycherfas.net/stream the feed points to https://www.jeremycherfas.net/blog.atom (and the same for the other feeds). But on https://www.jeremycherfas.net/blog the feed points to https://www.jeremycherfas.net/.atom The /blog part is replaced by .

I'm not sure how to figure out how the feed plugin constructs the URL it points to.

If I can help further, just let me know what you need to know.

Thanks.

marknokes commented 4 years ago

I'm not sure if this helps, but I've found that Grav's normal taxonomy filtering occures at the blog URL. For example:

Categories: https://yoursite.com/blog.rss/category:someCategoryName https://yoursite.com/blog.atom/category:someCategoryName

Tags: https://yoursite.com/blog.rss/tag:someTagName https://yoursite.com/blog.atom/tag:someTagName

Both: https://yoursite.com/blog.atom/category:someCategoryName/tag:someTagName

jeremycherfas commented 4 years ago

Thanks. I'll have to give that a try.

Jeremy

On Mon, 30 Mar 2020, at 4:14 PM, Mark Nokes wrote:

I'm not sure if this helps, but I've found that Grav's normal taxonomy filtering occures at the blog URL. For example:

Categories: https://yoursite.com/blog.rss/category:someCategoryName https://yoursite.com/blog.atom/category:someCategoryName

Tags: https://yoursite.com/blog.rss/tag:someTagName https://yoursite.com/blog.atom/tag:someTagName

Both: https://yoursite.com/blog.atom/category:someCategoryName/tag:someTagName

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/getgrav/grav-plugin-feed/issues/52#issuecomment-606025113, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABARRPH5V3LEM7YMXW4L7XTRKCSMJANCNFSM4JKDXE6A.