Limit characters in codefusion atom feed

  • Author
    Posts
  • #867384

    Hi everyone, I’m using this code to display a wordpress atom in a codefusion website, but i need to limit the characters displayed in content, because is displaying all content

    anyone know how to limit this content?

    Thanks for you attention

    <cftry>
    <cfhttp url="http://grupomopi.com.br/aconteceu-barra/feed/atom/" method="GET" resolveurl="No" >
    </cfhttp>
    <cfset blog_xml=XMLParse(cfhttp.FileContent)>
    <cfoutput>
    <cfset displayChar="10">
    <cfloop index="x" from="1" to="10">

  • <span class="titulo-noticia">#blog_xml.feed.entry[x].title.xmlText#</span>
    #blog_xml.feed.entry[x].content.xmlText#
  • </cfloop>
    </cfoutput>
    <cfcatch>
    </cfcatch>
    </cftry>

    The blog I need help with is coutinhocouto.wordpress.com.

#867467

timethief
Member

Exactly what are yoy trying to achieve? And exactly which blog are you referring to?
Wordpress.com vs WordPress.org: The differences > http://support.wordpress.com/com-vs-org/
code > http://en.support.wordpress.com/code/
posting source code > http://en.support.wordpress.com/code/posting-source-code/

#867470

I’m trying to limit this

#blog_xml.feed.entry[x].content.xmlText#

to 50 characters or more, because is displaing the full content of the post

#867479

timethief
Member

To limit what displays in the RSS feed for your posts go to this page > Settings > Reading and look for:
For each article in a feed, show
__ Full text
__Summary

#867485

I see… but still displaying more text than I need, it is possible to decrease the characters of this summary?

#867495

timethief
Member

Exactly which blog are you referring to? Please post the URL.

#867496

#blog_xml.feed.entry[x].sumary.xmlText# —> Change the code to this

I limit heigh of the span element with css … many thanks for the help

#867497

timethief
Member

Exactly which blog are you referring to? Please post the URL.

The topic ‘Limit characters in codefusion atom feed’ is closed to new replies.