typo3

TYPO3: SQL error: 'Incorrect integer value: '' for column 'sys_language_uid' at row 1'

元气小坏坏 提交于 2019-12-01 17:35:01
I have newly setup TYPO3, but when I try to add/save content, it gives me this error: SQL error: 'Incorrect integer value: '' for column 'sys_language_uid' at row 1 The behavior is related to database management systems using strict mode, like MySQL since version 5.7. Disabling strict mode (like provided in the accepted answer) is just a work around. The real solution would be to explicitly cast values to integer by modifying TCA (table configuration array) for the according field definitions. for fields of type input that would be setting/extending 'eval' => 'int' , see example tt_content

TYPO3: SQL error: 'Incorrect integer value: '' for column 'sys_language_uid' at row 1'

☆樱花仙子☆ 提交于 2019-12-01 16:59:17
问题 I have newly setup TYPO3, but when I try to add/save content, it gives me this error: SQL error: 'Incorrect integer value: '' for column 'sys_language_uid' at row 1 回答1: The behavior is related to database management systems using strict mode, like MySQL since version 5.7. Disabling strict mode (like provided in the accepted answer) is just a work around. The real solution would be to explicitly cast values to integer by modifying TCA (table configuration array) for the according field

Extbase Model: setSysLanguageUid not working

人盡茶涼 提交于 2019-12-01 14:47:04
I created an extbase model and try to set the sys_language_uid field when creating a new item. For some reason though, it is completely ignored and always set to 0, even when the value I try to enter is definitely 1. My Model looks like this: class Ad extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity { /** * sysLanguageUid * * @var integer */ protected $sysLanguageUid; /** * @return int */ public function getSysLanguageUid() { return $this->sysLanguageUid; } /** * @param int $sysLanguageUid */ public function setSysLanguageUid($sysLanguageUid) { $this->sysLanguageUid = $sysLanguageUid; }

Uncaught TypeError: jQuery(…).tablesorter is not a function

喜你入骨 提交于 2019-12-01 13:18:24
问题 I have a typo3 plugin hat works fine in typo3 6.2.31 now I migrate to 7.6.23. I have several problems with jQuery libraries. I often got this error: Uncaught TypeError: jQuery(...).tablesorter is not a function Or Uncaught TypeError: $(...).tablesorter is not a function The library is loaded correctly. Is there a way to fix this issue? Thanks. 回答1: Check that there is a loaded tablesorter plugin first before the tyop3 plugin, sounds like ideal sort order would be: jQuery library Tablesorter

How to use option split to control typo3 menu properties?

孤者浪人 提交于 2019-12-01 13:08:38
I am trying to resolve a design issue implementation in typo3. Essentially I have to implement a tabbed menu (only the active state is tabbed) that's generated from the directory, but each active (tabbed) menu has to have a different bg colour (matching the tab body box). I opted to use a TMENU initially but was introduced to the optionsplit functionality earlier as a way to achieve this but I can't think of a way achieve this using a TMENU so I am currently experimenting with GMENU, however I am not getting the right results. Below is my current code which gives me blank white spaces. I am

Extbase Model: setSysLanguageUid not working

不问归期 提交于 2019-12-01 12:27:51
问题 I created an extbase model and try to set the sys_language_uid field when creating a new item. For some reason though, it is completely ignored and always set to 0, even when the value I try to enter is definitely 1. My Model looks like this: class Ad extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity { /** * sysLanguageUid * * @var integer */ protected $sysLanguageUid; /** * @return int */ public function getSysLanguageUid() { return $this->sysLanguageUid; } /** * @param int

TYPO3 show content from subpages inlcuding css classes

自作多情 提交于 2019-12-01 12:19:18
With the following typoscript I get all content from the subpages on one page: lib.allPid = COA lib.allPid { 10 = HMENU 10 { special = directory special.value = 2 1 = TMENU 1 { expAll = 1 NO.doNotShowLink = 1 NO.allStdWrap.field = uid NO.allStdWrap.wrap = |, } 2 < .1 } } lib.allContent = CONTENT lib.allContent { table = tt_content select { pidInList.cObject < lib.allPid leftjoin = pages ON (tt_content.pid = pages.uid) where = tt_content.colPos = 0 orderBy = pages.sorting ASC } } But its not copying the tt_content wrap defined by the layout selectbox in the content element: tt_content.stdWrap

Typoscript - Link a file only if it exists using URL

感情迁移 提交于 2019-12-01 11:50:38
问题 I am using Templavoilà Plus and I have one field which the user complete with a title called field_title . I use this field to create an URL/HTML for other fields of my FCE, using Typoscript Object Path. Constants: file = fileadmin/datasheets/|.pdf Setup: lib.field_datasheet = TEXT lib.field_datasheet { field = field_title wrap = <a href="{$file}"></a> } The problem is that I want to do that only if the file/URL exists. First, I thought of checking if the URL I create didn't link to a 404

Typoscript - Link a file only if it exists using URL

百般思念 提交于 2019-12-01 11:50:30
I am using Templavoilà Plus and I have one field which the user complete with a title called field_title . I use this field to create an URL/HTML for other fields of my FCE, using Typoscript Object Path. Constants: file = fileadmin/datasheets/|.pdf Setup: lib.field_datasheet = TEXT lib.field_datasheet { field = field_title wrap = <a href="{$file}"></a> } The problem is that I want to do that only if the file/URL exists. First, I thought of checking if the URL I create didn't link to a 404 page. Then I thought it would be easier to check if the file size wasn't 0. After working on that for two

TYPO3 StoragePid and Current

白昼怎懂夜的黑 提交于 2019-12-01 11:40:24
问题 i build a simple commentary extbase extension, which i want to include with typoscript in a project extension (also extbase). The fluid code in the project extension looks like this: <f:for each="{project.reports}" as="report"> ...Content... {report -> f:cObject(typoscriptObjectPath: 'lib.comments')} </f:for> "Reports" is an array of id's. The lib.comments typoscript looks like this: lib.comments = USER lib.comments { userFunc = tx_extbase_core_bootstrap->run extensionName = Comments