I'm making a RSS 2.0 feed powered by PHP & MySQL. I would like to know how to make simple formatting in the contents like Line Breaks, Bold, Italics, Links, Images.
When I try to insert a <br> in the database for a newline, the feed reader is displaying it as Invalid Feed.
Related
Im currently using a cffeed tag to pull content from a Wordpress RSS feed. When i output #content# I should be receiving numerous paragraphs worth of text. However, its only outputting a short blurp followed by a "read more link". How Do I display all the text I'm pulling from the RSS feed?
Below is my code for pulling the RSS feed and displaying content.
<cfset rssUrl = "https://chasbroucktest.wordpress.com/feed/">
<cffeed action="read" source="#rssUrl#" query="entries" properties="info">
<cfdump var="#entries#">
<cfoutput query="entries">
<p>#content#</p><br/>
</cfoutput>
I assume that chasbroucktest.wordpress.com is not your own site?
If it is then first steps would be to check your feed settings in the wp-admin menu;
Options -> Reading
Under "Syndication Feeds", be sure you've selected "Full Text."
If its not then perhaps you could use a service such as feedburner to drag the full article from the source.
I am using RSS FEED's content from a wordpress site to show contents in a mobile app.
However, only posts that have content show in the feed.
The posts that only have a title and no feed, do not show up.
How can I make possible for posts that don't even have a content show up in RSS2 ?
when you are creating Rss feed u might be getting empty or null values...check for those and add something like NA or anything static that would be identifibale when u parse that Rss feed.
I'm fairly new to Drupal and really only working on it for a client, but I've got a group of images I'm outputting into a list / gallery, however for a js I've written to do some nifty sorting and such, I need to have the keyword tags saved with the image to be output into the Alt field.
Is this a "replacement pattern" or even possible? Any resource links or code snippets would be greatly appreciated!
You can use tokens in imagefields if you enable the imagefield_tokens module. The taxonomy terms should be available as replacement patterns on the field settings form under "ALT text settings" (the token you probably want is [term-raw]).
I'm creating some feeds of news items and such. These items have URL aliases set for them. Is there a reason why the URL alias do not get used in the RSS feed?
I have a multi-language site which uses the path aliases to show correct navigation, and so when I get a 'node' link from the feed, it breaks everything.
EDIT
I'm creating the rss feed as using views
When I do a live preview in the view the correct link is shown. So the incorrect link comes somewhere after that.
Are you creating the feeds using Views? if not you should do it. It may be happening that the code that's returning the feed is printing the links to the nodes without using the l() function so aren't being translated to the corresponding alias.
Just in case, here it's a nice tutorial about how to do a feed with Views http://drupal.org/node/314097
I've been having problems with a Google News feed. Its description field contains a whole bunch of HTML along with the actual one sentence teaser of the news story. What language/technology do I need to learn/use to massage this feed into something prettier?
Yahoo pipes might be what you could use http://pipes.yahoo.com/pipes/