Coder Social home page Coder Social logo

bolt-extension-rssfeed's People

Contributors

blakebeus avatar bobdenotter avatar cndforster avatar doenietzomoeilijk avatar gwendolenlynch avatar nestordedios avatar xiaohutai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bolt-extension-rssfeed's Issues

Feed per category

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

Content-Type

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

BUG : All records are fetched even with draft status

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' %}

Add tags to feeds?

How difficult would it be to add tags added to Bolt posts to the feeds generated by this extension?

Generated links to posts are incorrect

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

Language code?

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.

Markdown support / doc suggestion

Before I start turning in silly PRs, I'd like to discuss this with you first:

  • I kinda stumbled upon being able to override the default template, by having a file in my theme folder. The default config tells me that overriding templates should live in the 'assets' directory, but never mentions anything about themes. This could be me being new to Bolt in general, but the docs might benefit from giving slightly more info on overriding the template. I'm more than willing to write some words, would that be welcome?
  • My posts have a markdown field for the body, and I'd like the content to be rendered in the feed. I'm sure there's more than one way to set this up, but if I want to keep using rssSafe I'd have to change that. I tried grabbing $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...)?

Absolute paths should be turned into full URLs

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.

v3.0.5 doesn't work on Bolt 3.1.1

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 ?

bolt 2.1 breaks rssfeed extension

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

Error on newest bolt installation

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];
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.