RSS 1.1 Generating Smarty Error *SOLVED*
Posted: Mon Aug 06, 2007 3:16 pm
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:
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.
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)"
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.