bolt / bolt-extension-rssfeed Goto Github PK
View Code? Open in Web Editor NEWRSS feed publisher for Bolt
Home Page: https://bolt.cm/
RSS feed publisher for Bolt
Home Page: https://bolt.cm/
Hello,
i am running a site with wordpress. Some of the articles under a certain category are published on an other side (osbn.de (not mine)). This sides fetches the articles with an rss feed which contains just the articles under this certain category (http://www.example.com/category/categoryname/feed for instance).
Because am not very happy with Wordpress i want to switch to Bolt CMS. Do you see a chance that this extension will support feeds per category in the near future? Unfortunately i am not a programmer and therefore i am not able to alter this extension by myself or create a new one and i am not very comfortable with the workaround i posted under https://discuss.bolt.cm/d/652-feed-per-category.
Thank you very much in advance for your answer.
Jens
Hi,
I have the extension configured and working almost fine on a v2.1.8, except that the returned content type is text/plain for my rss/xml feeds.
I tried to forcetype it through htaccess but with no success, neither by uninstalling all other extensions. Any idea ?
Thanks
With v3.1 all records are fetched even if they have draft
status.
Waiting for a fix, I update my personal rss.twig
template to correct that effect with :
{% for record in records if record.status == 'published' %}
How difficult would it be to add tags added to Bolt posts to the feeds generated by this extension?
Given this (shortened) contenttypes.yml
config:
blog:
name: Blog
singular_name: Post
slug: blog
singular_slug: post
fields:
title:
type: text
class: large
group: content
slug:
type: slug
uses: [title]
group: content
taxonomy: [ tags ]
record_template: blog_entry.twig
listing_template: listing_blogs.twig
And this rssfeed.bolt.yml
config:
sitewide:
enabled: true
feed_records: 50
feed_template: rss.twig
atom_template: atom.twig
content_length: 100
content_types: [ blog ]
<link>
in the resulting RSS feed is incorrect:
<link>https://www.example.com/blog/example-slug</link>
It should be:
<link>https://www.example.com/post/example-slug</link>
Is there a particular reason why the output in the RSS twig files cannot be changed to use record.link
for example <link>{{ absolute_url(record.link) }}</link>
?
Bolt version 3.2.13 / bolt/rssfeed version 3.2.0
The RSS 2.0 feed does not seem to validate. Think it's the language code, it's "sv_se" and not "sv-se" as it should be in RSS.
Before I start turning in silly PRs, I'd like to discuss this with you first:
$record->getDecodedValue($field)
rather than $record->values[$field]
, but that only works when I echo it, running it through Maid gives me back an empty result. Any idea why that is? Or should I just drop the rssSafe (I'm the sole author and I somewhat trust myself...)?Links in entries that point to other entries, will usually be in the form /path/to/entry
, and it's the same with images. This means that feed readers trip up on it, because they don't "know" what domain bit to stuff in front of it to turn it into https://example.org/path/to/entry
. Well, technically, they could, but that's not going to happen for each and every RSS reader.
So, we need a way to ensure that every link inside the feed is actually a full, absolute URL.
Hi, I couldn't do many tests, but when I upgraded bolt-extension-rssfeed
to v3.0.5 on my Bolt 3.1.1, /rss/feed.(xml|rss)
leeds me to 404 error page. When I downgraded extension to v3.0.4, /rss/feed.(xml|rss)
got me my sitewide RSS feeds. Maybe I forgot something when I try to upgrade ?
Twig_Error_Runtime in Template.php line 487:
Variable "canonical" does not exist in "rss.twig" at line 5.
After upgrading to 2.1, rssfeed breaks bolt:
Fatal error: Call to undefined method Bolt\Storage::getContentTypeAssert() in /home/lijn/vhosts/hikingmom.eu/extensions/vendor/bolt/rssfeed/Extension.php on line 54
PHP Fatal Error: Bolt Extensions
There is a fatal error in the 'bolt/rssfeed' extension loaded on your Bolt Installation.
Error: Call to undefined method Bolt\Storage::getContentTypeAssert()
File: extensions/vendor/bolt/rssfeed/Extension.php
Line: 54
You will only be able to continue by manually deleting the extension that is installed at:
extensions/vendor/bolt/rssfeed
Uncaught Exception: ContextErrorException .
ContextErrorException in Generator.php line 183:
Notice: Undefined index: entries
protected function getContentTypes($contentTypeName)
{
$contentTypes = [];
if ($contentTypeName === null) {
foreach ($this->config->getSiteWideFeed()->getContentTypes() as $name => $type) {
$contentTypes[$name] = $this->contentTypes[$type];
}
} else {
$contentTypes[$contentTypeName] = $this->contentTypes[$contentTypeName];
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.