ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Links in RSS get stripped

March 06, 2008 1:19am

Subscribe [1]
  • #1 / Mar 06, 2008 1:19am

    Matt Johnson

    45 posts

    How do I make links in an article show up in an RSS feed?

    Example Feeds:

    http://www.mattdetails.com/feeds/articles/
    http://www.mattdetails.com/feeds/the_shorts/
    http://www.mattdetails.com/feeds/articles-plus-shorts/

    Is this even possible with EE?

    I suppose to make this easier for whoever has the answer:


    The code for the articles feed:

    {assign_variable:master_weblog_name="default_site"}
    {exp:rss:feed weblog="{master_weblog_name}"}
    
    <?xml version="1.0" encoding="{encoding}"?>
    <rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:content="http://purl.org/rss/1.0/modules/content/">
    
        <channel>
        
        <title>{exp:xml_encode}{weblog_name}{/exp:xml_encode}</title>
        <link>{weblog_url}</link>
        <description>{weblog_description}</description>
        <dc:language>{weblog_language}</dc:language>
        <dc:creator>{email}</dc:creator>
        <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
        <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
        
    {exp:weblog:entries weblog="{master_weblog_name}" limit="10" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=blog/comments}</link>
          <guid>{title_permalink=blog/comments}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description>{exp:xml_encode}{summary}{/exp:xml_encode}</description>
          <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
    {/exp:weblog:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}

    Not much different for the other feeds - just the weblog=“weblog_name” parameter gets changed.

  • #2 / Mar 06, 2008 10:49am

    Robin Sowell

    13255 posts

    I’m a little fuzzy on what’s not showing up- you have links in your summary that are stripped out?  Can you point me to an example on one of the sample feeds- ‘it shows this, but it should show that’ type thing?

  • #3 / Mar 06, 2008 1:54pm

    Matt Johnson

    45 posts

    Well sure.

    http://www.mattdetails.com

    Thats my blog right there.

    These are the feeds.

    http://www.mattdetails.com/feeds/articles/
    http://www.mattdetails.com/feeds/the_shorts/
    http://www.mattdetails.com/feeds/articles-plus-shorts/


    Example would be one of my short posts is like this:
    FFFFOUND! Image Bookmarking.

    But in the feed it is just:
    FFFFOUND! Image Bookmarking.

  • #4 / Mar 06, 2008 3:20pm

    Lisa Wess

    20502 posts

    Give this kb article a shot.

  • #5 / Mar 06, 2008 3:43pm

    Matt Johnson

    45 posts

    Ah, Lisa.  You always make me look like a fool.

    If it helps any, I did a search, just not the right keywords.

    Thanks

  • #6 / Mar 06, 2008 3:47pm

    Lisa Wess

    20502 posts

    Aw you don’t look like a fool, and I’m just trying to help!  It helps to know that the article is there, too…  Glad you got it working. =)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases