Closed (fixed)
Project:
Advanced Views RSS Feed
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2009 at 14:10 UTC
Updated:
17 Nov 2011 at 10:17 UTC
I'm stuck. I have a feed view set up using views_rss fields style, with Views 6.x-2.7. I have the fields title, body and posted date mapped to title, description and pubDate. But the output is completely unformatted as a feed (a single paragraph of plain text from the live preview and separate paragraphs from the actual feed) and consists only of the trimmed body text and the date. The title with the link to the node does not display at all. Any help would be appreciated.
Comments
Comment #1
chungyc commentedYou probably want to map the URL to the node to the link element, not include it as a link in the title. The RSS specification is ambiguous about whether markup can be included in the title, so it's safer not to depend on it. Not to mention that it probably won't work with a lot of feed readers ...
As to how to get the node URL, there doesn't seem to be a clean solution, but rewriting the Node Nid is a quick and dirty solution (same issue is mentioned in http://drupal.org/node/585720)
Comment #2
droopy commentedThanks. I mapped the url to the 'link element' and disabled the 'link this field to its node' option under node: title. But the title still does not show up in the feed output. The url is now there, along with trimmed body and post date, but not the title. The standard rss feed style works correctly, but the rss feed - fields style does not pick up the node title.
Comment #3
chungyc commentedThat's odd, I'm surprised the title isn't showing up. Just in case, have you checked that you haven't unmapped the title field? If the title field is still mapped, then I'm stumped. Maybe posting the feed or a link to it might help with figuring out what's wrong; posting the exported view might be even better.
Comment #4
droopy commentedHi.
I've included a sample of the output from the live preview of the feed followed by the feed section of the export.
You'll see that the output consists of the trimmed body, the url and the posted date. The title is missing, with or without the link.
Comment #5
chungyc commentedThis may be a silly question, but have you checked the actual feed rather than just the preview? I've just spent a lot of time trying to figure out why the title won't show up in the preview, and was just flabbergasted when the title shows up when actually accessed in a feed reader. The preview function for Views RSS appears to be broken. :/
Comment #6
droopy commentedNo, I'd tried that - and tried it again. The feed itself is completely empty, presumably because it is not finding any titles. I also don't get the feed icons showing up. I tried creating a completely new view with only the views_rss styled feed and had the same problem. I had a look at views issues but couldn't see anything relevant there. I have a CCK content type in addition to standard stories but filtering out the CCK type made no difference.
I did find that the built-in rss feed does not work with preview but works from the url.
Comment #7
chungyc commentedIf the default display shows rows of fields but the feed itself is completely empty of any content, then I don't have a clue what's wrong. Is there a URL you can provide for the feed?
As for the missing feed icon problem, it might be the same one as mentioned in http://drupal.org/node/585720
Comment #8
droopy commentedHi - and thanks for sticking with this.
The url for the feed is: www.postost.net/feed/all/rss.xml
The weird thing is I have just discovered that in Firefox 3.0.15 it doesn't work but it's OK in Safari: I get the properly constructed feed with title and trimmed text.
But - if you look at the source of the feed in Firefox, the feed seems to be there.
On the other hand, if I edit the feed view in Safari, the live preview still doesn't work.
So basically I think I have the feed working, but there is a problem with the output in Firefox and with the live preview in Safari.
Comment #9
chungyc commentedOK, got what the problem is: HTML has to be escaped. You'll have to fix the code as explained in http://drupal.org/node/607622
Hopefully, this should finally give you a working feed. (Won't fix preview, though: that will need someone to code a proper render function for previews ...)
Comment #10
droopy commentedRight, that seems to have fixed it apart from the preview. Many thanks.
Comment #11
akongz commentedare this link of title can using path alias?
now I'm used static setting like bellow in field nid
http://www.example.com/node/[nid]
Comment #15
jmlavarenne commentedThis is a simple method to use the path alias for the title :
Use the Custom Field module :
http://drupal.org/project/views_customfield
With this it's easy to set up a custom php field in the view.
Include the Node: nid field in your fields.
Create a custom field with the following code :
This way you will have your nice url path in the feed.
Comment #16
maciej.zgadzaj commentedIf this is still an issue, please try the most recent 6.x-1.x-dev version of the module (from 2011-Nov-09). D7 version to follow.
Also, please read the first draft of module documentation for what it can and can't do (and how).
Feel free to re-open this issue if needed.