RSS 1.1 Generating Smarty Error *SOLVED*

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
jbwhite

RSS 1.1 Generating Smarty Error *SOLVED*

Post 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.
Last edited by jbwhite on Mon Aug 06, 2007 3:35 pm, edited 1 time in total.
jbwhite

Re: RSS 1.1 Generating Smarty Error *SOLVED*

Post 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.
Locked

Return to “CMSMS Core”