I have a blog which uses a Fluid field (comprised of other fields) to compose the content for my blog posts. My RSS feed currently pulls from a simple text field to display the excerpt for each post. While this works, ideally I’d like to show the full content of each blog post. I haven’t had any luck trying to figure out how to render the content of my Fluid field in RSS.
This is the block I have in my rss feed file that pulls in the content from my blog:
{exp:channel:entries channel="blog" limit="1000" dynamic_start="on" status="not closed" disable="member_data|pagination"}
<item>
<title><![CDATA[{title}]]></title>
<link>(domain url)/{url_title}</link>
<guid>(domain url){url_title}</guid>
<description><![CDATA[{blog_excerpt}]]></description>
<dc:date>{gmt_entry_date format="{DATE_W3C}"}</dc:date>
</item>
{/exp:channel:entries}
(note: I had to remove the actual http link from <link> and <guid> to get this forum post to submit)
I tried replacing {blog_excerpt} with my Fluid field tag {blog_fluid} but nothing happened. Any thoughts on how I can achieve what I’m trying to accomplish? Thanks!
Inside the XML <description> field you need to add the complete fluid field loop, same as it is in your normal entry template, e.g.
<description>
<![CDATA[
{blog_excerpt}
{blog_fluid}
{blog_fluid:my_field}
{content}
{blog_fluid:my_field}
...etc
{/blog_fluid}
]]>
</description>
If your normal fluid field has additional container tags such as DIV, SECTION etc you might need to strip these out of the RSS version.
Rob,
That seems to have done the trick! I just copied and pasted in what I have in my fluid field loop and it seems to be working. Going to watch it over the next few posts to make sure everything’s rendering properly.
Really appreciate that help!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.