-
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Exclude sub entries of page/storage recursively
* adds `no_search_sub_entries` field to page and storage folder * updates the sub pages of page/storage marked as `no_search_sub_entries` Resolves: #2432
- Loading branch information
Showing
13 changed files
with
196 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
defined('TYPO3_MODE') or die(); | ||
|
||
/** | ||
* No Search for sub entries of page tree. | ||
*/ | ||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns( | ||
'pages', | ||
[ | ||
'no_search_sub_entries' => [ | ||
'exclude' => true, | ||
'label' => 'LLL:EXT:solr/Resources/Private/Language/locallang_tca.xlf:pages.no_search_sub_entries', | ||
'config' => [ | ||
'type' => 'check', | ||
'renderType' => 'checkboxToggle', | ||
'items' => [ | ||
[ | ||
0 => '', | ||
1 => '', | ||
'invertStateDisplay' => true | ||
] | ||
], | ||
'behaviour' => [ | ||
'allowLanguageSynchronization' => true | ||
] | ||
] | ||
], | ||
] | ||
); | ||
|
||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette( | ||
'pages', | ||
'miscellaneous', | ||
'no_search_sub_entries', | ||
'after:no_search' | ||
); | ||
|
||
// Enable no_search_sub_entries for storage folders. | ||
$GLOBALS['TCA']['pages']['palettes']['slimmed_miscellaneous'] = [ | ||
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.miscellaneous', | ||
'showitem' => 'no_search_sub_entries;LLL:EXT:solr/Resources/Private/Language/locallang_tca.xlf:pages.no_search_sub_entries', | ||
]; | ||
|
||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( | ||
'pages', | ||
'--palette--;;slimmed_miscellaneous', | ||
(string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER, | ||
'after:module' | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff"> | ||
<file t3:id="1415814793" source-language="en" datatype="plaintext" original="EXT:core/Resources/Private/Language/locallang_csh_pages.xlf" date="2020-12-1T15:22:32Z" product-name="context_help"> | ||
<header/> | ||
<body> | ||
<trans-unit id="no_search_sub_entries.description" resname="no_search_sub_entries.description"> | ||
<source>If enabled, this option includes the sub entries of this page in Solr index. (NOTE: Value=0 means enabled in this view.)</source> | ||
<target>Falls aktiviert, werden die Untereinträge dieser Seite bei einer Suche berücksichtigt. (Bitte beachte, dass der Wert=0 wegen Negation in dieser Ansicht "aktiviert" bedeutet.)</target> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> | ||
<xliff version="1.0"> | ||
<file source-language="en" datatype="plaintext" original="messages" date="2020-12-01T11:42:09Z"> | ||
<header> | ||
<generator>LFEditor</generator> | ||
</header> | ||
<body> | ||
<trans-unit id="pages.no_search_sub_entries" xml:space="preserve"> | ||
<source>Include sub entries in Search</source> | ||
<target>Untereinträge in Indexsuche einbeziehen</target> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff"> | ||
<file t3:id="1415814793" source-language="en" datatype="plaintext" original="EXT:core/Resources/Private/Language/locallang_csh_pages.xlf" date="2020-12-1T15:22:32Z" product-name="context_help"> | ||
<header/> | ||
<body> | ||
<trans-unit id="no_search_sub_entries.description" resname="no_search_sub_entries.description"> | ||
<source>If enabled, this option includes the sub entries of this page in Solr index. (NOTE: Value=0 means enabled in this view.)</source> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> | ||
<xliff version="1.0"> | ||
<file source-language="en" datatype="plaintext" original="messages" date="2020-12-01T11:42:09Z"> | ||
<header> | ||
<generator>LFEditor</generator> | ||
</header> | ||
<body> | ||
|
||
<trans-unit id="pages.no_search_sub_entries" xml:space="preserve"> | ||
<source>Include sub entries in Search</source> | ||
</trans-unit> | ||
|
||
</body> | ||
</file> | ||
</xliff> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters