mein xml file sieht so aus:
Code: Alles auswählen
<?xml version="1.0" encoding="UTF-8" ?>
<EventList xmlns:ra="http://www.events.de/xml/events" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="eventliste.xsd">
<event id="84624">
<name>Independance Night</name>
<eo_reservierung>0</eo_reservierung>
<link>http://www.events.de/event/84624/independance_night.html</link>
<beginn>
<date>2006-05-12</date>
</beginn>
<eventart>Live-Konzert</eventart>
<genres>
<genre>Alternative</genre>
</genres>
<location>
<name>The Cave</name>
<plz>60313</plz>
<ort>Frankfurt</ort>
<link>http://www.events.de/location/134/the_cave.html</link>
</location>
<artists />
<teaser />
<images>
<image>
<thumb>
<link>http://www.events.de/media/image/public/5809/thumb/cave_logo.jpg</link>
</thumb>
</image>
</images>
</event>
</EventList>
ich benutze dieses modul:
Output
Code: Alles auswählen
<?php
/***********************************************
* CONTENIDO MODUL - OUTPUT
*
* Modulname : Insert RSS feed
* Authors: : Timo Hummel, Andreas Lindner
* Copyright : Contenido - four for business
* Created : 30.09.2005
************************************************/
cInclude("pear", "XML/Parser.php");
cInclude("pear", "XML/RSS.php");
if ("CMS_VALUE[0]" == "")
{
$sFeed = "http://www.contenido.org/rss/de/news";
} else {
$sFeed = "CMS_VALUE[0]";
}
if ("CMS_VALUE[2]" == "")
{
$FeedMaxItems = 999;
} else {
$FeedMaxItems = intval("CMS_VALUE[2]");
}
/* Preparse feed for an encoding due to the poorly designed
PHP XML parser */
$sFeedContent = substr(@file_get_contents($sFeed),0,1024);
$regExp = "/<\?xml.*encoding=[\"\'](.*)[\"\']\?>/i";
preg_match($regExp,trim($sFeedContent),$matches);
if ($matches[1])
{
$rss =& new XML_RSS($sFeed, $matches[1]);
} else {
$rss =& new XML_RSS($sFeed);
}
$rss->parse();
$tpl = new Template;
$i = 0;
foreach ($rss->getItems() as $item)
{
if ($i < $FeedMaxItems) {
$tpl->set("d", "TITLE", htmlentities($item['title'],ENT_QUOTES));
$tpl->set("d", "LINK", htmlentities($item['link'],ENT_QUOTES));
$tpl->set("d", "DESCRIPTION", htmlentities($item['description'],ENT_QUOTES));
$tpl->set("d", "READ_ON", mi18n("weiterlesen"));
$tpl->next();
}
$i++;
}
$tpl->generate($cfgClient[$client]["path"]["frontend"]."templates/"."CMS_VALUE[1]");
?>
ich bekomme jedoch keine ausgabe...
es steht einfach nix drin.....
hat jemand eine lösung...
danke