public function edit($type, $slotname, $page = null)
    {
        $className = $this->getClassName($type);

        if ($page === null) {
            $page = Router::getActivePage();
        }

        $model = $this->find($type, $slotname, $page->getCurrentVersion());
        $attrs = $model ? $model->toArray() : [];

        $chunk = new $className($page, $attrs, $slotname);

        return $chunk->editable($this->allowedToEdit($page));
    }