Search code examples
coldfusionrsscffeed

using cffeed at rss feed


I am using cffeed for making an rss feed, but I have problems using the tag for images. Is there anyone who can help me with that?

Another problem is making the a string while the input comes from an 'int' field. Is there a simple way to solve that problem?

I bases my code on the article in here: Images in rss feed using ColdFusion and CFFeed

thanks.


Solution

  • As for the second part of your problem, try:

    #javaCast( "string", value )#
    

    where value is the numeric that should be a string. Coldfusion is typeless, but when it encounters a value that could be made into a numeric it will do so. Hence the javaCast which explicitly sets the value to be a String.