Hot answers tagged

6

Set a limit of nulll on your entry query which means no limit. If you do not specify a limit, you will only see 100 entries. .limit(null)


4

You can use the Feed Me plugin if you like! While it can save feed items as entries, you can use the template tag which allows you to simply fetch feed data without actually saving it. Then you can loop through your feed items in your templates. Let me know if you have any issues - I created the plugin, so happy to assist :)


3

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="http://www.w3.org/2005/Atom"> {% set rss = craft.entries.section('article').limit(10).type('article') %} <channel> <title>My Site Name</...


2

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

It looks like one of two things: Its possible that you are not actually injecting your accesstokem with the following string 'https://api.instagram.com/v1/tags/search?q=mnbasel&access_token={access-token}' I believe it should be : `https://api.instagram.com/v1/tags/search?q=mnbasel&access_token=${access-token}` If you still get the oauth error, ...


2

This sounds like that CalFileParser library you are using has some issues with timezones. There is a pull-request that supposedly fixes these, but I would rather exchange it for another library. https://github.com/u01jmg3/ics-parser has the more modern codebase, seems to be actively maintained, more used, and can be installed using composer.


2

It looks a bit awkward, but to append items to an array you have to use Twig's merge filter, merging the feeds_array with itself for each new item. Here's how I'd do it if you need different logic for each feed: {% set feeds_array = [] %} {% for node in craft.feedme.feed(my_rssfeed) %} {% set feeds_array = feeds_array|merge([{ title: node.title }]) %} {...


1

I'm not sure why you would do two different servers. Your front end can be cached with Blitz / NGINX which will take a load off the server and admin. How often are you aggregating the data? I've just imported 10k records from a source and I would recommend writing your own module to handle the imports as commands. From there you could set up a cron which ...


1

There is no way out-of-the-box so your only options would be to either create a module that passes multiple XML files into feed me using the direct feed url or to create a script/use software that merges all the files into one.


1

Solution is simple, the field type is a select so I need to change entry.feedLimit to entry.feedLimit.value And then it works


1

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 referenced The name of the template file will dictate the URL for that template. If you re-name your template file to feed.twig, you access that template by going ...


1

If you can get the original calendar data into a JSON or RSS format, then check out the wonderful Feed Me plugin. It seamlessly handles JSON, RSS, XML, and ATOM formats.


1

FeedsService uses SimplePie for feed parsing, but it currently does expose any errors that SimplePie may be returning when connecting to a feed. A feed could not be found at http://test.solutions.vwdservices.com/customers/vastned.com/page-modules/widgetrss. This does not appear to be a valid RSS or Atom feed. Here's the error it's returning when ...


Only top voted, non community-wiki answers of a minimum length are eligible