Ich nochmal 
Das funktioniert:
Code: Alles auswählen
<?php
// assert framework initialization
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
  // Fix Codierte Daten der Seite mit dem statischen Text
    $art_idart = "CMS_VALUE[0]";
    $art_client = 1;
    $art_lang = 1;
    
    // Erstelle Artikel Objekt
    $obj = new cApiArticleLanguage(); 
	$obj->loadByArticleAndLanguageId($art_idart, $art_lang);
// get text from content type HTML with index 1
    $text = $obj->getContent("html", 2);  
// When in backend edit mode add a label so the author
// knows what to type in the shown field.
if (cRegistry::isBackendEditMode()) {
    $label = mi18n("LABEL_TEXT");
} else {
    $label = NULL;
}
// use smarty template to output header text
$tpl = cSmartyFrontend::getInstance();
$tpl->assign('label', $label);
$tpl->assign('text', $text);
$tpl->display('get.tpl');
?>
 
Das funktioniert nicht:
Code: Alles auswählen
<?php
/**
 * description: standard image
 *
 * @package Module
 * @subpackage ContentImage
 * @version SVN Revision $Rev:$
 *
 * @author marcus.gnass@4fb.de
 * @copyright four for business AG <www.4fb.de>
 * @license http://www.contenido.org/license/LIZENZ.txt
 * @link http://www.4fb.de
 * @link http://www.contenido.org
 */
// assert framework initialization
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
	$art_idart = "CMS_VALUE[0]";
    $art_client = 1;
    $art_lang = 1;
	// get image source from content type IMG with index 1
    
    
    // Erstelle Artikel Objekt
    $obj = new cApiArticleLanguage(); 
	$obj->loadByArticleAndLanguageId($art_idart, $art_lang);
	// get text from content type HTML with index 1
    $imageSource = $obj->getContent("CMS_IMG", 31);  
echo $imageSource;
// get description as content type IMGDESCR with index 1
$imageDescription = $obj->getContent("imgdescr", 31);
$slider_str_url = getEffectiveSetting('image', 'url', 1);
// build class containing all data necessary to display image
// therefor the image dimensions have to be determined
if (0 < strlen($imageSource)) {
    $clientConfig = cRegistry::getClientConfig(cRegistry::getClientId());
    $filename = str_replace($clientConfig["upl"]["htmlpath"], $clientConfig["upl"]["path"], $imageSource);
	$aa = cApiImgScale($filename, 800, 800, false, false, 100);
	$img = str_replace($slider_str_url, '', $aa);
	
    list($imageWidth, $imageHeight) = getimagesize($filename);
    $image = new stdClass();
	$image->src = cApiImgScale($img, 740, 400, true, 95);
    $image->alt = $imageDescription;
    $image->width = $imageWidth;
    $image->height = $imageHeight;
} else {
    $image = NULL;
}
// When in backend edit mode add a label so the author
// knows what to type in the shown field.
if (cRegistry::isBackendEditMode()) {
    $label = mi18n("LABEL_IMAGE");
} else {
    $label = NULL;
}
// use smarty template to output header text
$tpl = cSmartyFrontend::getInstance();
$tpl->assign('label', $label);
//$tpl->assign('editor', $imageEditor);
$tpl->assign('image', $image);
$tpl->display('get.tpl');
?>
Was mach ich falsch?
LG - derJu