Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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..
Comment | File | Size | Author |
---|---|---|---|
#19 | feed style 8.png | 18.88 KB | ludo1960 |
#19 | feed style 9.png | 12.75 KB | ludo1960 |
#14 | feed style 7.png | 17.62 KB | ludo1960 |
#8 | feed style 6.png | 13.37 KB | ludo1960 |
#4 | feed style 3.png | 21.74 KB | ludo1960 |
Comments
Comment #1
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedSounds 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?
Comment #2
ludo1960 CreditAttribution: ludo1960 commentedThanks for your reply maciej,
Yes it does.
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 :(
Comment #3
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedThat 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?
Comment #4
ludo1960 CreditAttribution: ludo1960 commentedThanks 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
Comment #5
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedCould you also make a screen dump of the source of your feed? With all XML elements visible?
Comment #6
ludo1960 CreditAttribution: ludo1960 commentedHi maciej,
Not sure what you mean by source of my feed,
Here's the source of the Feed page:
Comment #7
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedAh. 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!Comment #8
ludo1960 CreditAttribution: ludo1960 commentedOk stripped the HTML tags and flushed the cache, you're gonna love the output:
Comment #9
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedThis looks much better. But show me the source (as in #6).
Comment #10
ludo1960 CreditAttribution: ludo1960 commentedHi Maciej, is this what you mean?
Comment #11
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedExactly. This looks almost ok. Almost, as you should remove links from titles. Have you read module documentation on how to set it up?
Comment #12
ludo1960 CreditAttribution: ludo1960 commentedYes I have read the module documentation but don't see anything relating to removing links from titles.
Comment #13
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedIn Setting up core <item> elements for
<title>
element it says: "uncheckLink this field to its node
".Also, RSS Best Pracices states:
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).Comment #14
ludo1960 CreditAttribution: ludo1960 commentedNearly 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!
Comment #15
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedErm. 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?
Comment #16
ludo1960 CreditAttribution: ludo1960 commentedhttp://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
Comment #17
ludo1960 CreditAttribution: ludo1960 commentedMaybe I should try the dev version
Comment #18
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedThat 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...Comment #19
ludo1960 CreditAttribution: ludo1960 commentedHooray!! Got it at last. Attached are pics of the view and field usage. Dzienks Maciej for helping me out. It is greatly appreciated.
Comment #20
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedGreat 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... ;)
Comment #21
ludo1960 CreditAttribution: ludo1960 commentedNot 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.