From 115986663295b4f18f2ae96343f5308f29eb63d8 Mon Sep 17 00:00:00 2001 From: Jacco van der Post Date: Wed, 2 Sep 2020 16:40:25 +0200 Subject: [PATCH] [FEATURE] Further config for 10.4 --- .../Overrides/tx_jpfaq_domain_model_question.php | 14 ++++++++++++++ .../TCA/tx_jpfaq_domain_model_category.php | 1 - .../TCA/tx_jpfaq_domain_model_categorycomment.php | 1 - .../TCA/tx_jpfaq_domain_model_question.php | 1 - .../TCA/tx_jpfaq_domain_model_questioncomment.php | 1 - Documentation/ChangeLog/Index.rst | 4 ++++ Documentation/Settings.cfg | 6 +++--- Documentation/Settings.yml | 6 +++--- Resources/Public/Javascript/jpFaq.js | 2 +- ext_emconf.php | 2 +- 10 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 Configuration/TCA/Overrides/tx_jpfaq_domain_model_question.php diff --git a/Configuration/TCA/Overrides/tx_jpfaq_domain_model_question.php b/Configuration/TCA/Overrides/tx_jpfaq_domain_model_question.php new file mode 100644 index 0000000..313b60e --- /dev/null +++ b/Configuration/TCA/Overrides/tx_jpfaq_domain_model_question.php @@ -0,0 +1,14 @@ +getMajorVersion() === 10) { + foreach (['question', 'category', 'questioncomment', 'categorycomment'] as $tableSuffix) { + unset($GLOBALS['TCA']['tx_jpfaq_domain_model_' . $tableSuffix]['interface']['showRecordFieldList']); + } + } +}; + +$boot(); +unset($boot); \ No newline at end of file diff --git a/Configuration/TCA/tx_jpfaq_domain_model_category.php b/Configuration/TCA/tx_jpfaq_domain_model_category.php index 9d8c4ed..690a7f4 100644 --- a/Configuration/TCA/tx_jpfaq_domain_model_category.php +++ b/Configuration/TCA/tx_jpfaq_domain_model_category.php @@ -41,7 +41,6 @@ ], 'l10n_parent' => [ 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'config' => [ 'type' => 'select', diff --git a/Configuration/TCA/tx_jpfaq_domain_model_categorycomment.php b/Configuration/TCA/tx_jpfaq_domain_model_categorycomment.php index 5684aae..b8f7ded 100644 --- a/Configuration/TCA/tx_jpfaq_domain_model_categorycomment.php +++ b/Configuration/TCA/tx_jpfaq_domain_model_categorycomment.php @@ -48,7 +48,6 @@ ], 'l10n_parent' => [ 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'exclude' => true, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'config' => [ 'type' => 'select', diff --git a/Configuration/TCA/tx_jpfaq_domain_model_question.php b/Configuration/TCA/tx_jpfaq_domain_model_question.php index 69851de..91d8216 100644 --- a/Configuration/TCA/tx_jpfaq_domain_model_question.php +++ b/Configuration/TCA/tx_jpfaq_domain_model_question.php @@ -41,7 +41,6 @@ ], 'l10n_parent' => [ 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'config' => [ 'type' => 'select', diff --git a/Configuration/TCA/tx_jpfaq_domain_model_questioncomment.php b/Configuration/TCA/tx_jpfaq_domain_model_questioncomment.php index 4200df3..3b869dd 100644 --- a/Configuration/TCA/tx_jpfaq_domain_model_questioncomment.php +++ b/Configuration/TCA/tx_jpfaq_domain_model_questioncomment.php @@ -49,7 +49,6 @@ ], 'l10n_parent' => [ 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'exclude' => true, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'config' => [ 'type' => 'select', diff --git a/Documentation/ChangeLog/Index.rst b/Documentation/ChangeLog/Index.rst index 6cb027a..d7545e9 100644 --- a/Documentation/ChangeLog/Index.rst +++ b/Documentation/ChangeLog/Index.rst @@ -10,6 +10,10 @@ ChangeLog ========= +10.4.0 +""""" +For TYPO3 CMS versions 9.5 and 10.4. (thx to Cristian Fries) + 9.5.3 """"" Prevent search engine indexing of helpful links and comment form (thx to Nemo64) diff --git a/Documentation/Settings.cfg b/Documentation/Settings.cfg index 516f2b9..84fad79 100644 --- a/Documentation/Settings.cfg +++ b/Documentation/Settings.cfg @@ -1,8 +1,8 @@ [general] project = Frequently Asked Questions -release = 9.5.2 -version = 9.5 -copyright = 2019 +release = 10.4.0 +version = 10.4 +copyright = 2020 [notify] about_new_build = no diff --git a/Documentation/Settings.yml b/Documentation/Settings.yml index f7b1636..17593e2 100644 --- a/Documentation/Settings.yml +++ b/Documentation/Settings.yml @@ -4,10 +4,10 @@ --- conf.py: - copyright: 2018 + copyright: 2020 project: jpFAQ - version: 9.0 - release: 9.0.0 + version: 10.4 + release: 10.4.0 intersphinx_mapping: t3tsref: - http://docs.typo3.org/typo3cms/TyposcriptReference/ diff --git a/Resources/Public/Javascript/jpFaq.js b/Resources/Public/Javascript/jpFaq.js index 8bb5104..7409c09 100644 --- a/Resources/Public/Javascript/jpFaq.js +++ b/Resources/Public/Javascript/jpFaq.js @@ -122,7 +122,7 @@ var jpFaq = jpFaq || {}; $(jpFaqFilterCount).hide(); } - $(txJpfaq + ' li').each(function () { + $(txJpfaq + ' .jpfaqList > li').each(function () { if ($(this).text().search(new RegExp(searchFilter, 'i')) < 0) { $(this).fadeOut('fast'); } else { diff --git a/ext_emconf.php b/ext_emconf.php index e48b091..2f3d602 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -10,7 +10,7 @@ 'uploadfolder' => false, 'createDirs' => '', 'clearCacheOnLoad' => 0, - 'version' => '9.5.3', + 'version' => '10.4.0', 'constraints' => array( 'depends' =>