CMS_LINKEDIT noch in 4.9 enthalten ?
Verfasst: Sa 26. Okt 2013, 13:03
Gibt es die CMS_LINKEDIT[] noch, oder mache ich was verkehrt?
Modul:
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
$link = "CMS_LINKTARGET[1]";
if(cRegistry::isBackendEditMode()){
$linkedit = "CMS_LINKEDIT[1]";
}
$tpl = cSmartyFrontend::getInstance();
$tpl->assign('link', $link);
$tpl->assign('linkedit', $linkedit);
$tpl->display('get.tpl');
get.tpl:
{$linkedit}
<a href="{$link}">Link</a>
Es wird CMS_LINKEDIT[1] ausgeben und nicht der Button. CMS_LINKTARGET[1] wird nicht ausgegeben, hier kommt http://www.domain.tld/cms.
Funktioniert das jetzt anders?
Modul:
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
$link = "CMS_LINKTARGET[1]";
if(cRegistry::isBackendEditMode()){
$linkedit = "CMS_LINKEDIT[1]";
}
$tpl = cSmartyFrontend::getInstance();
$tpl->assign('link', $link);
$tpl->assign('linkedit', $linkedit);
$tpl->display('get.tpl');
get.tpl:
{$linkedit}
<a href="{$link}">Link</a>
Es wird CMS_LINKEDIT[1] ausgeben und nicht der Button. CMS_LINKTARGET[1] wird nicht ausgegeben, hier kommt http://www.domain.tld/cms.
Funktioniert das jetzt anders?