So wie ich die Sache sehe, ist das größte Problem, dass die alten Inhaltstypen nicht mehr funktionieren. In CMSms vor Version 1.6 konnte man ein Modul als Inhaltstyp registrieren, indem man in der Modul-Klasse in der Funktion "SetParameters" einen Aufruf startete wie:
Code: Select all
$this->RegisterContentType('GuestbookContent',cms_join_path(dirname(__FILE__),'class.GuestbookContent.php'),$this->GetFriendlyName());
Code: Select all
if ($GLOBALS['CMS_VERSION'] < 1.6) {
if (method_exists($this, 'registercontenttype')) {
$this->RegisterContentType('GuestbookContent',cms_join_path(dirname(__FILE__),'class.GuestbookContent.php'),$this->GetFriendlyName());
}
}
Code: Select all
if ($GLOBALS['CMS_VERSION'] < 1.6) {
if (method_exists($this, 'registercontenttype')) {
$this->RegisterContentType('PageBlocksContent', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'class.PageBlocksContent.php', $this->GetFriendlyName());
}
}
Code: Select all
function Guestbook() {
$this->CMSModule();
$this->InstalledModules = array();
if ($GLOBALS['CMS_VERSION'] >= 1.6) {
parent::CMSModule();
$this->RegisterContentType('GuestbookContent',cms_join_path(dirname(__FILE__),'class.GuestbookContent.php'),$this->GetFriendlyName());
}
}
Code: Select all
function PageBlocks() {
$this->CMSModule();
$this->InstalledModules = array();
if ($GLOBALS['CMS_VERSION'] >= 1.6) {
parent::CMSModule();
$this->RegisterContentType('PageBlocksContent', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'class.PageBlocksContent.php', $this->GetFriendlyName());
}
}