We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Pulling Full Content From Fluid Field into RSS Feed

How Do I?

philcoffman's avatar
philcoffman
4 posts
4 years ago
philcoffman's avatar philcoffman

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!

       
jostar's avatar
jostar
56 posts
4 years ago
jostar's avatar jostar

philcoffman, read this maybe it can help you.

https://expressionengine.com/forums/topic/253119/solved-rss-feed-with-image

       
Rob Allen's avatar
Rob Allen
3,105 posts
4 years ago
Rob Allen's avatar Rob Allen

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.

? 1
       
philcoffman's avatar
philcoffman
4 posts
4 years ago
philcoffman's avatar philcoffman

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!

? 1
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.