I run into the same problem regarding disappeared content when extending the extension tx_news. I extend the news extension with some chekboxes, but these values are lost after some time (2 hours). If I FLush the system cache, the checkbox value is correct again, but is gone after some time again. I had this issue with the 9.5.5 version, but from my point of view I have done everything correct. Why does the content disappears sometimes?
/**
* News model for default news
*
* @package TYPO3
* @subpackage tx_news
*/
class NewsExtend extends \GeorgRinger\News\Domain\Model\News {
/**
* imageGalleryDownload
*
* @var bool
*/
protected $imageGalleryDownload = false;
/**
* Returns the imageGalleryDownload
*
* @return bool $imageGalleryDownload
*/
public function getImageGalleryDownload()
{
return $this->imageGalleryDownload;
}
/**
* Sets the imageGalleryDownload
*
* @param bool $imageGalleryDownload
* @return void
*/
public function setImageGalleryDownload($imageGalleryDownload)
{
$this->imageGalleryDownload = $imageGalleryDownload;
}
/**
* Returns the boolean state of imageGalleryDownload
*
* @return bool
*/
public function isImageGalleryDownload()
{
return $this->imageGalleryDownload;
}
}
And at my TCA:
'image_gallery_download' => [
'exclude' => false,
'l10n_mode' => 'prefixLangTitle',
'label' => 'Disable Image-Download function',
'config' => [
'type' => 'check',
'items' => [
'1' => [
'0' => 'Disabled'
]
],
'default' => 0,
],
],