RSS feed #923
austintoddj
started this conversation in
New Features
RSS feed
#923
Replies: 1 comment 1 reply
-
Not sure where this got but doesn't look like this exists yet. I was looking for a way to get the url from a $post, and was expecting a callable to pass in somewhere, which would suit the problems mentioned above. My instinct, was using laravel macros in the CanvasServiceProvider to provide a
Turns out models arn't macroable, so that doesn't work, but you could do something similar. Maybe a default |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The
feature/feed
branch in the project contains the necessary classes to accomplish this. There's one problem though:Canvas doesn't know about how posts are routed from the frontend. The link value in each
<entry>
in the feed itself needs to be an absolute path to where the post can be publicly viewed.So, the only viable solution I can see is passing some sort of config variable to serve as the path prefix.
That would make it so the following scenarios would be covered:
www.athlead.com/posts/post-slug
www.theartinstitute.com/post-slug
However, Dwight wants his to look more personalized to himself:
www.schrutefarms.com/dwight/post-slug
www.schrutefarms.com/mose/post-slug
When it's a dynamic routing structure, even a config variable passed to Canvas won't do the job.
I'd really like to see this feature as a part of the package, but until I find a solution that will work for all these scenarios, and more, it's stuck where it is.
Related issues: #686, #490
Beta Was this translation helpful? Give feedback.
All reactions