Skip to content

Commit

Permalink
[TASK] Make page type restriction removal for comments compatible wit…
Browse files Browse the repository at this point in the history
…h v12
  • Loading branch information
benjaminkott committed May 23, 2023
1 parent 3a778e6 commit 5f7bfce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Configuration/TCA/tx_blog_domain_model_comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
'default' => 'record-blog-comment'
],
'searchFields' => 'uid,comment,name,email',
'security' => [
'ignorePageTypeRestriction' => true,
],
],
'columns' => [
'pid' => [
Expand Down
4 changes: 3 additions & 1 deletion ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@
options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . Constants::DOKTYPE_BLOG_POST . ')
');

ExtensionManagementUtility::allowTableOnStandardPages('tx_blog_domain_model_comment');
if ((GeneralUtility::makeInstance(Typo3Version::class))->getMajorVersion() < 12) {
ExtensionManagementUtility::allowTableOnStandardPages('tx_blog_domain_model_comment');
}

if ((GeneralUtility::makeInstance(Typo3Version::class))->getMajorVersion() < 12) {
// Main Blog
Expand Down

0 comments on commit 5f7bfce

Please sign in to comment.