Index: mod1/index.php =================================================================== --- mod1/index.php (revision 27355) +++ mod1/index.php (working copy) @@ -442,8 +442,17 @@ // Initialize the special doktype class: $specialDoktypesObj =& t3lib_div::getUserObj ('&tx_templavoila_mod1_specialdoktypes',''); $specialDoktypesObj->init($this); + $doktype = $this->rootElementRecord['doktype']; - $methodName = 'renderDoktype_'.$this->rootElementRecord['doktype']; + // if doktype is configured as editType render normal edit view + if (isset($this->modTSconfig['properties']['doktypesRenderAsEdit'])) { + $handleDoktypes = t3lib_div::trimExplode(',', $this->modTSconfig['properties']['doktypesRenderAsEdit'], TRUE); + if (in_array($doktype, $handleDoktypes)) { + $doktype = 1; + } + } + + $methodName = 'renderDoktype_' . $doktype; if (method_exists($specialDoktypesObj, $methodName)) { $result = $specialDoktypesObj->$methodName($this->rootElementRecord); if ($result !== FALSE) {