/** * Parse the form */ protected function parse() { parent::parse(); // assign the data $this->tpl->assign('item', $this->record); $this->tpl->assign('fieldLanguages', $this->fieldLanguages); // is category allowed to be deleted? if (BackendCatalogModel::isCategoryAllowedToBeDeleted($this->id)) { $this->tpl->assign('showDelete', true); } //--Add media $this->tpl->assign('mediaItems', $this->media->getMediaItems()); }