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.

Text instead of link in rss display

June 04, 2010 1:18pm

Subscribe [6]
  • #1 / Jun 04, 2010 1:18pm

    Jim Dad

    34 posts

    Something strange that I did not remark before : when the rss feed is displayed in a rss reader the links do not appear as link but only as text.

    The text shown is only the text of the link, but it is not possible to open a new page as there is no link.

    Can somebody help ?

    Thanks.

  • #2 / Jun 04, 2010 3:08pm

    Sue Crocker

    26054 posts

    Hi, Jim Dad. Can you give us a link to the RSS feed in question?

  • #3 / Jun 04, 2010 4:13pm

    Jim Dad

    34 posts

    Yes, of course
    http://bit.ly/bjnZp0
    The last word “source” at the end of the first post should be a link

  • #4 / Jun 04, 2010 4:21pm

    Sue Crocker

    26054 posts

    Which version/build of ExpressionEngine 1.6.x are you using? You can find that out at the bottom of any control panel page.

    The current version of the 1.6.x branch is 1.6.9 and the build is 20100430.

  • #5 / Jun 04, 2010 6:18pm

    Jim Dad

    34 posts

    ExpressionEngine 1.6.9 - Version :  20100430

  • #6 / Jun 04, 2010 9:11pm

    Mark Bowen

    12637 posts

    Would help to see the actual template code that is creating the RSS feed for this 😉

    Viewing the actual source code of the RSS link that you’ve provided as far as I can tell doesn’t tell us anything as the ‘Source’ word is as you say just plain text therefore showing us the template that creates the RSS feed would definitely help in this matter.

    Best wishes,

    Mark

  • #7 / Jun 05, 2010 3:41am

    Jim Dad

    34 posts

    So far as I remember it is original code excepted parameters.

    {assign_variable:master_weblog_name="xxxxx"}
    {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>
                <name>{author}</name>
        <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://www.pmachine.com/" >
        
    {exp:weblog:entries weblog="{master_weblog_name}" limit="5" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=tic/index}</link>
          <guid>{title_permalink=tic/index}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description>{exp:xml_encode}{summary}{exp:char_limit total="1000"}
    {body}
    {/exp:char_limit}{/exp:xml_encode}</description>
          <dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
          <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
    {/exp:weblog:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}
  • #8 / Jun 05, 2010 9:07am

    Mark Bowen

    12637 posts

    Okay so I guess your Source text / link is inside the {summary} variable yes?

    If so then how exactly is that text / link formatted?

    Best wishes,

    Mark

  • #9 / Jun 05, 2010 3:47pm

    Greg Salt

    3988 posts

    Hi Jim Dad,

    As Mark asks, is this link contained within the summary or body fields? What is the formatting for that field? Does the link display properly when this entry is rendered on a standard template?

    Cheers

    Greg

    @Mark, thanks for helping out.

  • #10 / Jun 06, 2010 4:28am

    Jim Dad

    34 posts

    The link is only inside body. There is nothing in the summary field.

    Format of the link
    Source.

    As explained I guess that the template is original.
    Nevertheless I made a copy from the original rss_2.0 template and the result is the same.
    Only atom template makes a correct display of the link, including <content type=“html”>

    Should it makes sense for you, most of the posts are published using Scribefire, so probably that one.

  • #11 / Jun 06, 2010 4:30am

    Jim Dad

    34 posts

    Format of the link
    < a target=“_blank” href=“http://www.abc.com/management/article.php?id=91158” >Source< / a >

  • #12 / Jun 06, 2010 6:55am

    Mark Bowen

    12637 posts

    Oops sorry I could have sworn that the </description> end tag came after the {summary} variable I didn’t even see the {body} variable in there.

    Have you tried perhaps taking out the xml encode plugin for now just to see if that’s doing anything to it perhaps?

    Try just as standard output and see what that does maybe?

    Best wishes,

    Mark

  • #13 / Jun 06, 2010 10:17am

    Jim Dad

    34 posts

    Hi Mark,
    What do you mean with the “xml encode plugin” ?
    Jim

  • #14 / Jun 06, 2010 10:41am

    Mark Bowen

    12637 posts

    Hi Mark,
    What do you mean with the “xml encode plugin” ?
    Jim

    You have

    {exp:xml_encode}

    the xml_encode plugin surrounding those variables. Try taking out the {exp:eml_encode} and the {/exp:xml_encode} tags and see if anything changes.

    Just a thought though as I’ve had a few problems in the past with surrounding items in RSS feeds with it.

    Best wishes,

    Mark

  • #15 / Jun 06, 2010 10:57am

    Jim Dad

    34 posts

    Without the xml_encode plugin the feed is displayed empty.

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

ExpressionEngine News!

#eecms, #events, #releases