Page 1 of 1

RSS 1.1 Generating Smarty Error *SOLVED*

Posted: Mon Aug 06, 2007 3:16 pm
by jbwhite
All,

I'm trying to embed RSS feeds from wire services into my website.  I've downloaded RSS 1.1 and it appears to be functional. However, some feeds just don't appear to work. 

Reuters: http://feeds.reuters.com/Reuters/Politi ... format=xml

RSS 1.1 module statement:

{cms_module module="rss" url="http://feeds.reuters.com/Reuters/Politi ... format=xml"}

Generates the following:

Code: Select all

string(141) "Smarty error: [in content:content_en line 1]: syntax error: invalid attribute name: 'url' (Smarty_Compiler.class.php, line 1536)" string(126) 
"Smarty error: [in content:content_en line 1]: syntax error: invalid attribute name: '=' (Smarty_Compiler.class.php, line 1536)" string(209) 
"Smarty error: [in content:content_en line 1]: syntax error: invalid attribute name: '"http://feeds.reuters.com/Reuters/PoliticsNews?format=xml"' (Smarty_Compiler.class.php, line 1536)"
Page Address:

http://www.wku.edu/~john.white/cms/inde ... age=health

AP Works, with a more complex feed URL: http://hosted.ap.org/lineups/HEALTHHEAD ... CTION=HOME

CMS Module Statement:
{cms_module module="rss" url="http://hosted.ap.org/lineups/HEALTHHEAD ... CTION=HOME"}

No Smarty errors generated but the Smarty compiler did make some chages:

{cms_module module="rss" url="http://hosted.ap.org/lineups/HEALTHHEAD ... CTION=HOME" descriptions="1"}

Notice the inserts and the & substition in the URL.

Page Address:
http://www.wku.edu/~john.white/cms/inde ... e=health-2

It does not, however, include descriptions.  As a side note, using the {embed} tag with the Reuters URL does place the content inside the page. 

*Message edited to add the Smarty compiler changes.

Re: RSS 1.1 Generating Smarty Error *SOLVED*

Posted: Mon Aug 06, 2007 3:36 pm
by jbwhite
I am an idiot.

The editor (FCK?)  was adding the code statements, etc.  As soon as I changed to editing the module tag in source, and stayed in source while I applied the change, the module tag worked fine.