17
votes
Accepted
Any working RSS feed examples out there?
Here's the boilerplate I've been using for RSS feed templates. I just name the file rss.html and call it a day.
This assumes a channel is set up with a description and title field.
{% header "...
5
votes
Accepted
How do you output images without "?mtime" at the end of the url?
?mtime= should only appear for Assets images that are being served from a source that has Expires settings set (so, either an S3 or Google Cloud source).
This is done done for cache busting purposes. ...
4
votes
Populating an RSS feed with full post content?
I would use a lead paragraph field that you could then call into the RSS feed. Or you could add a post summary field. You could then call that whenever you need to, RSS or otherwise.
4
votes
Accepted
Check if file exists
I don't think it's possible to do with out-of-the-box Twig/Craft, but it's a super-easy plugin to write.
All you'd need is to give your plugin a Template Variable so that you could do:
{% if craft....
3
votes
Accepted
FeedMe - Extracting attribute from an RSS feed field
I'm unable to view the feed via the link you've provided - seems like it may not allow public access. In any case, see a working example below using an example public RSS feed.
{% set params = {
...
3
votes
Experience with Craft's native rss/atom support?
Yeah, so I have a rss.twig file in the root of my template directory.
{% header "Content-Type: application/rss+xml" %}
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="...
3
votes
Any working RSS feed examples out there?
I just used {% header %} and changed it to application/xml instead of application/rss+xml and got the result I was expecting.
2
votes
RSS Aggregator for Craft?
Until the plugin store becomes an "official thing", the best, most curated list of plugins available for Craft is over at Straight Up Craft.
I'm not seeing anything that would do exactly what you're ...
2
votes
RSS Aggregator for Craft?
Perhaps the following plugin could help to import entries from RSS:
Craft CMS plugin to import entries from XML
2
votes
Accepted
Does Craft have a timeout setting for template requests?
Nothing directly in Craft, but you're probably looking for PHP's max_execution_time, which governs how long a PHP script is allowed to execute. It defaults to 30 seconds.
You can edit that value ...
2
votes
Any working RSS feed examples out there?
I made an article about RSS feed template component for Craft CMS - you can read it here:
http://craftsnippets.com/articles/rss-feed-template-component-for-craft-cms
2
votes
Accepted
Template extraction of namespace node values from RSS using Feedme plugin
As the example actually shows, you'd reference these sort of nodes using the array notation.
{{ node['dc:creator'] }}
2
votes
Accepted
RSS caching removes items from feed
The 3rd parameter passed into getFeedItems is for an offset, not caching. The caching parameter is in the 4th place and accepts any valid PHP time format.
2
votes
Accepted
White space added to start of template's
As Brad kindly pointed out, I checked my files in the config directory and noticed a few spaces before I started the <?php in my /craft/config/imager.php file. I would never have thought to check ...
2
votes
Accepted
FeedMe error with iTunes RSS compatible feed
You can’t use dot syntax because of the colon, try this instead
{{ feed[0]['itunes:image']['@href'] }}
1
vote
RSS throwing 404 error
You have named the file feed.rss, and you are trying to access it by going to /rss. So I can see two issues here:
The template file needs to be either .html or .twig, as per the
tutorial you have ...
1
vote
Not All Entries showing in feed page but do show in Page Source XML
I accidentally had loop inside of the description tag which strangely caused only 17 entries to post to the RSS feed. Below is an example of what was causing the issue:
<description><![CDATA[...
1
vote
Accepted
Error for RSS feed
If you view the source of the RSS page you're linked to, you'll see the underlying error causing your feed to mess up:
Craft\EntryModel and its behaviors do not have a method or closure named "...
1
vote
Accepted
How to make a separate RSS feed for each entry type of a section?
Rey - depending on how you've setup your enries and folder structure you could create feed.rss as a template in both of those folders.
Inside the template you can setup the entry loop to output ...
1
vote
Populating an RSS feed with full post content?
If I am getting you right you have no problem with Craft outputting the content you want.
You are rather asking us on what is considered best practice for what content one should deliver with RSS ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
rss × 16plugin-feedme × 3
feed × 3
templating × 2
entries × 2
craft3 × 1
assets × 1
image × 1
error × 1
entry-type × 1
404 × 1
best-practice × 1
whitespace × 1
xml × 1