I am trying to create a block that has typical form input fields and a CKEditor field as well, i.e., I want $content to be just another field in the table that has other fields as well. I tried various attempts, including trying to add input fields to the existing content block, but nothing works
I would not recommend adding a new field to the actual content block, but if you really want to do that youāll need to copy the whole concrete/blocks/content directory into application/blocks and make your changes there. You will need to add more fields to the database so youāll have to refresh the block type after you update the db.xml and the rest of the files.
public function getContent() {
return LinkAbstractor::translateFrom($this->content);
}
public function getContentEditMode() {
return LinkAbstractor::translateFromEditMode($this->content);
}
to my blockās controller? And if so, do I also need to add all the other functions I see in the content block controller, like
public function getImportData($blockNode, $page)...
public function export(\SimpleXMLElement $blockNode)...
public function getUsedFiles()...