From: Eduard G. <xad...@gm...> - 2008-09-05 09:24:04
|
Hey, I fixed a stupid mistake and now this works well. We place this extra in cchost_files/lib. In viewfile/*.xml you may include these lines: <tal:block define="news php:getRSS('http://www.musicalliure.net/bloc/feed/',2)" /> <ul class="home_news"> <li tal:repeat="item news"><h4><a href="${item/link}">${item/title}</a></h4> ${item/pubDate}<br />${item/description}</li> </ul> Thus the 2 latest headlines are shown. It's PHP5. It may not work with PHP4. It works in ccHost 4.5, but it's suposed to work in ccHost 5. Feel free to use it, distribute or anything under GPLterms :) -- tac822.net MusicaLliure.net |