ich habe einen neuen Mandanten mit Sprache u.s.w angelegt und verwende nun dieses Modul s.u. Allerdinsg liefert er mir für die
$configIdart 96 nicht den richtigen idartlangid: 141 , sondern idartlangid:96 zurück und gibt das auch aus:(
Das ist aber nicht die Richtige Sprachübersetzung und stammt auch aus dem ersten mandanten. Waru hat er darauf überhaupt Zugriff?!
Woran kann das liegen? Ich verwende die aktuelle Trunk von Montag
Code: Alles auswählen
<?php
/**
* description: copyright notice
*
* @package Module
* @subpackage ContentCopyrightNotice
* @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.');
$configIdart = getEffectiveSetting('footer_config', 'idart', 0);
if (0 < $configIdart) {
$article2 = new cApiArticleLanguage($configIdart, true);
echo $configIdart."<br />";
echo $article2->getContent('CMS_HTML', 1)."<br />";
echo $article2->get("title")."<br />";
echo $article2->get("summary")."<br />";
echo $article2->get("idart")."<br />";
$text = $article2->getContent('CMS_HTML', 96);
$text = str_replace('{year}', date('Y'), $text);
// use smarty template to output header text
$tpl = cSmartyFrontend::getInstance();
$tpl->assign('text', $text);
$tpl->display('get.tpl');
}