http://forum.redaxo.de/ftopic5510.html
Oliver
<strong>TITEL:</strong><br />
<input type="text" size="100" name="VALUE[3]" value="REX_VALUE[3]" />
<br /><br />
<strong>TEXT:</strong><br />
<?php
//TinyMCE for Redaxo- dh@gn2-netwerk.de v0.03
include("include/addons/tinymce/tiny2.php");
$TINY2[0]=new tiny2editor();
$TINY2[0]->content="REX_VALUE[1]";
$TINY2[0]->buttons1=""; // Buttons nicht vergessen :)
$TINY2[0]->buttons2="";
$TINY2[0]->buttons3="";
$TINY2[0]->buttons4=""; // Buttons nicht vergessen :)
$TINY2[0]->disable=""
$TINY2[0]->plugins=""; // PlugIns nicht vergessen :)
$TINY2[0]->validhtml=""; // fürs Forum gekürzt
$TINY2[0]->show();
?>
<br /><br />
<strong>BILD:</strong> REX_MEDIA_BUTTON[2]<br /><br />
<?php
if ("REX_FILE[2]" != "") {
echo '<img src="'.$REX['HTDOCS_PATH'].'index.php?rex_resize=80w__'."REX_FILE[2]".'" alt=" " />';
}
?>
<h1>REX_VALUE[3]</h1><br />
<?php
$data =<<<EOD
REX_HTML_VALUE[1]
EOD;
$content=$data;
if ($REX['REDAXO']) {
$content=str_replace('src="files/','src="../files/',$content);
echo '<link rel="stylesheet" type="text/css" href="../files/tinymce/content.css" />';
}
echo $content;
echo '<br /><br />';
if ("REX_FILE[2]" != "") {
// Thumbnail
echo '<img src="'.$REX['HTDOCS_PATH'].'files/REX_FILE[2]" alt=" " />';
}
?>
<br /><br />
<?php
$cat = OOCategory::getCategoryById($cat_id); // Kat-ID
$articles = $cat->getArticles(true); // Online = true
$nl ="\r\n";
echo '<?xml version=\'1.0\' encoding=\'UTF-8\'?>' . $nl;
echo '<root>' . $nl;
if (is_array($articles) && count($articles) > 0) {
if ($art_id) { // true
$slice = OOArticleSlice::getFirstSliceForArticle($art_id);
$artid = $slice->getId();
$artTitel = $slice->getValue(3);
$artText = $slice->getValue(1);
$artBild = $slice->getFile(2);
echo '<article id="' . $art_id . '" bild="' . $artBild . '">' . $nl;
echo '<content><![CDATA[<h2>' . utf8_encode($artTitel) .'<h2><br>' . utf8_encode($artText) . ']]></content>' . $nl;
echo '</article>' . $nl;
}
}
echo '</root>' . $nl;
?><?php
$templ_id = $_GET['temp_id'];
ob_start();
@ini_set( 'arg_separator.input', '&');
@ini_set( 'arg_separator.output', '&');
unset($REX);
$REX['REDAXO'] = false;
$REX['GG'] = true;
$REX['HTDOCS_PATH'] = "./";
include "./redaxo/include/master.inc.php";
if (!isset($article_id) or $article_id == '') $article_id = $REX['START_ARTICLE_ID'];
$REX_ARTICLE = new article;
$REX_ARTICLE->setCLang($clang);
if ($REX_ARTICLE->setArticleId($article_id)) {
echo $REX_ARTICLE->getArticleTemplate();
} elseif($REX_ARTICLE->setArticleId($REX['NOTFOUND_ARTICLE_ID'])) {
echo $REX_ARTICLE->getArticleTemplate();
} else {
echo 'Kein Startartikel selektiert / No starting Article selected. Please click here to enter <a href="redaxo/index.php">redaxo</a>';
$REX['STATS'] = 0;
}
$CONTENT = ob_get_contents();
ob_end_clean();
$CONTENT = rex_register_extension_point( 'OUTPUT_FILTER', $CONTENT);
rex_register_extension_point( 'OUTPUT_FILTER_CACHE', $CONTENT, '', true);
//echo $CONTENT;
//echo $article_id;
include $REX['INCLUDE_PATH']."/generated/templates/" . $templ_id . ".template";
?>http://www.deineseite.de/xml.php?temp_id=1&cat_id=1&art_id=1pro artikel wird aber nur ein slice ausgelesen, oder seh ich das falsch
<?xml version='1.0' encoding='UTF-8'?>
<root>
<article id="1" bild="bild.jpg">
<content><![CDATA[<h2>Titel<h2><p>Text</p>]]></content>
</article>
</root><content><![CDATA[<h2>Titel<h2><p>Text</p>]]></content><![CDATA[<h2>Titel<h2><p>Text</p>]]>Zurück zu Templates/Navigationen [R3]
Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast