Hello,

Thank you for your module, seems to be just what I need. I have read all the documentation and scanned through the issue queue but can't seem to get it to work. I have a view with 2 CCK fields on a page display. I added a feed with the RSS Feed - Fields style, attached it to the page, gave it a path and mapped my 2 CCk fields in the Feed: Style options - Field usage. I see nothing in the views preview for the Feed and when I visit the page I see the RSS icon but clicking the icon leads to a Page not Found. I feel I am missing a fundamental point, any ideas?

Thanks..

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maciej.zgadzaj’s picture

Status: Active » Postponed (maintainer needs more info)

Sounds like you have something misconfigured there... Your "page not found" after clicking the RSS icon - does it have the same path as you entered for the RSS feed view in view settings? What happens if you go directly to "page" display path? Do you see any items there? What happens if you go directly to "feed" display path? Could you make a screenshot of your feed display configuration?

ludo1960’s picture

Status: Postponed (maintainer needs more info) » Active
FileSize
20.71 KB
13.19 KB

Thanks for your reply maciej,

Your "page not found" after clicking the RSS icon - does it have the same path as you entered for the RSS feed view in view settings?

Yes it does.

What happens if you go directly to "page" display path? Do you see any items there?

yes I see the CCK fields and the RSS icon.

Yes it does sound like a configuration issue, been through it a hundred times and can't see it :(

maciej.zgadzaj’s picture

That looks quite ok to me, perhaps that could be something with one of your fields? Could you try to recreate the view from the scratch, but adding only for example core node title at the beginning and no other custom fields, see if that works and the feed gets generated properly, and then adding other fields one by one checking if/where it breaks?

ludo1960’s picture

FileSize
8.7 KB
5.15 KB
21.74 KB

Thanks for sticking with me on this. Created a new view with just the node title in it, page view works the RSS feed is blank??? See attached screenshots. The view is feed style 3.png, the page view is feed style 4.png and the resultant feed is feed style 5.png

maciej.zgadzaj’s picture

Could you also make a screen dump of the source of your feed? With all XML elements visible?

ludo1960’s picture

Hi maciej,

Not sure what you mean by source of my feed,

Here's the source of the Feed page:

<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" >
  <channel>
    <title>Mobile Unit</title>
    <description></description>
    <link>http://bla bla.org.uk</link>
    <item>
  </item>
<item>
  </item>
<item>
  </item>
<item>
  </item>

<item>
  </item>
<item>
  </item>
<item>
  </item>
<item>
  </item>
<item>
  </item>
<item>
  </item>
  </channel>
</rss>
maciej.zgadzaj’s picture

Ah. So actually your page IS found, and the RSS feed is being generated, it's just that the item values are not there... This means that your fields are passed to the module in some funny way which it is unable to parse. Make sure in your field configuration you output only one value, strip any HTML code (required for <title> element, for <description> it should be at least escaped properly), and remember about flushing the cache!

ludo1960’s picture

FileSize
13.37 KB

Ok stripped the HTML tags and flushed the cache, you're gonna love the output:

maciej.zgadzaj’s picture

This looks much better. But show me the source (as in #6).

ludo1960’s picture

Hi Maciej, is this what you mean?

<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" >
  <channel>
    <title>Mobile Unit</title>
    <description></description>
    <link>http://bla bla org.uk</link>
    <item>
  <title>&lt;a href=&quot;/bus-calendar/2218&quot;&gt;Gorgie&lt;/a&gt;</title>

</item>
<item>
  <title>&lt;a href=&quot;/bus-calendar/2219&quot;&gt;Gorgie&lt;/a&gt;</title>
</item>
<item>
  <title>&lt;a href=&quot;/bus-calendar/2220&quot;&gt;Broomhouse&lt;/a&gt;</title>

</item>
<item>
  <title>&lt;a href=&quot;/bus-calendar/2221&quot;&gt;Wester Hailes&lt;/a&gt;</title>
</item>
<item>
  <title>&lt;a href=&quot;/bus-calendar/2222&quot;&gt;High Riggs&lt;/a&gt;</title>

</item>
<item>
  <title>&lt;a href=&quot;/bus-calendar/2223&quot;&gt;High Riggs&lt;/a&gt;</title>
</item>
<item>
  <title>&lt;a href=&quot;/bus-calendar/2224&quot;&gt;High Riggs&lt;/a&gt;</title>

</item>
<item>
  <title>&lt;a href=&quot;/bus-calendar/2228&quot;&gt;Dumbiedykes&lt;/a&gt;</title>
</item>
<item>
  <title>&lt;a href=&quot;/bus-calendar/2226&quot;&gt;Leith&lt;/a&gt;</title>

</item>
<item>
  <title>&lt;a href=&quot;/bus-calendar/2227&quot;&gt;Leith&lt;/a&gt;</title>
</item>
  </channel>
</rss>
maciej.zgadzaj’s picture

Exactly. This looks almost ok. Almost, as you should remove links from titles. Have you read module documentation on how to set it up?

ludo1960’s picture

Yes I have read the module documentation but don't see anything relating to removing links from titles.

maciej.zgadzaj’s picture

In Setting up core <item> elements for <title> element it says: "uncheck Link this field to its node".

Also, RSS Best Pracices states:

For all elements defined in the RSS specification that enclose character data, the text SHOULD be interpreted as plain text with the exception of an item's description element, which MUST be suitable for presentation as HTML.

So essentially you *could* have HTML in the <title> element (see "Recommendations" just below), and perhaps most readers will interpret it correctly (you cannot really be sure though), but it is discouraged. And in your case, you don't really have proper HTML there, it is encoded HTML, which you can be sure will *not* be interpreted as you want it.

If you want to have correct links working in all readers, use plain <title> and add proper <link> elements (again, see docs on how to do this).

ludo1960’s picture

FileSize
17.62 KB

Nearly there! Ok, so got the feed to display the title but how the heck do I get the CCK date field to display? Tried everything, but just can't get it!

maciej.zgadzaj’s picture

Erm. Just tried to add CCK Date field (Date module, I assume?) on my Sandbox and worked well (although, I've tested it on 6.x-2.x version). Ticked "Strip HTML tags" and, if you have multiple values enabled in field definition in your content type, make sure you output only one value, not all. What are you getting in feed source when you add your date field?

ludo1960’s picture

http://bla bla.org.uk <a href="/bus-calendar/2218">Gorgie</a> Wed, 29/02/2012 - 09:30 <a href="/bus-calendar/2219">Gorgie</a> Wed, 29/02/2012 - 12:00 <a href="/bus-calendar/2220">Broomhouse</a> Thu, 01/03/2012 - 09:30 <a href="/bus-calendar/2221">Wester Hailes</a> Thu, 01/03/2012 - 13:00 <a href="/bus-calendar/2222">High Riggs</a> Mon, 05/03/2012 - 09:30 <a href="/bus-calendar/2223">High Riggs</a> Mon, 05/03/2012 - 12:00 <a href="/bus-calendar/2224">High Riggs</a> Tue, 06/03/2012 - 09:30 <a href="/bus-calendar/2228">Dumbiedykes</a> Tue, 06/03/2012 - 12:00 <a href="/bus-calendar/2226">Leith</a> Wed, 07/03/2012 - 09:30 <a href="/bus-calendar/2227">Leith</a> Wed, 07/03/2012 - 12:00

ludo1960’s picture

Maybe I should try the dev version

maciej.zgadzaj’s picture

That in #16 is missing all RSS elements, but generally it doesn't look bad - assuming that those links are your <title> elements and dates are <description>s...

ludo1960’s picture

FileSize
12.75 KB
18.88 KB

Hooray!! Got it at last. Attached are pics of the view and field usage. Dzienks Maciej for helping me out. It is greatly appreciated.

maciej.zgadzaj’s picture

Status: Active » Closed (fixed)

Great to hear that! Could you share what the problem was, and what have you finally done to fix it? Just in case someone else with a similar issue reads this thread in the future.

PS: Dzienks? Wow, haven't heard that one in a while... ;)

ludo1960’s picture

Not entirely sure what I was doing wrong other than trying to map another CCK field to the title rather than the node title field itself. Thanks again for you help.