I want do display a financial widget on a front-end of a site.


The financial data is actually a feed:


But it's not working on the frontend. No content.

{% set feedUrl = "http://test.solutions.vwdservices.com/customers/vastned.com/page-modules/widgetrss" %}
{% set limit = 1 %}
{% set items = craft.feeds.getFeedItems(feedUrl, limit) %}

{% for item in items %}
    <div class="col-md-5ths">
        <div class="number">{{ item.title }}</div>
        <small class="{{ item.authors[0].name }}">{{ item.summary }}<br />{{ item.date }}</small>
{% endfor %}

This is my feed data:

<Feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2005/Atom">
<Title>Aandelen Vastned</Title>
<Title>€ 36,81</Title>

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 connecting to that feed.

We'll update FeedsService to return any errors that come back from SimplePie, too.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.