Ich spiele gerade mit den Möglichkeiten eines Plugins rum.
Habe dabei ein Problem.
Wenn ich mit Hilfe von
Code: Alles auswählen
cAutoload::addClassmapConfig(array('cContentTypeMeinType' => '$pfadPlugin . 'classes/class.content.type.mein_type.php'));Ich habe auch in der plugin.xml den content type gemeldet:
Code: Alles auswählen
plugin>
...
<content_types>
        <type>CMS_MEINTYPE</type>
</content_types>
</plugin>Code: Alles auswählen
<?php
class cContentTypeMeinType extends cContentTypeAbstractTabbed {
   function __construct($rawSettings, $id, array $contentTypes) {
        // set attributes of the parent class and call the parent constructor
        $this->_type = 'CMS_MEINTYPE;
        $this->_prefix = 'meintype';
        $this->_settingsType = self::SETTINGS_TYPE_XML;
        $this->_formFields = array(
            ...
        );
        // encoding conversions to avoid problems with umlauts
        $rawSettings = conHtmlEntityDecode($rawSettings);
        $rawSettings = utf8_encode($rawSettings);
        
        parent::__construct($rawSettings, $id, $contentTypes);
        ...
    }
    ...
}Benutz derzeit Contenido 4.9.11.
Kann mir wer einen Tipp geben was ich falsch mache?
Gruß
Matthias

 
 