mirror of
https://github.com/Codappix/search_core.git
synced 2024-12-25 01:36:10 +01:00
TASK: Provide sys_language_uid
Fetch sys_language_uid from database. Until now we did not fetch system related fields from database. As there is now a RemoveProcessor, integrators are able to remove fields. Also providing this field enables basic multi language support. Relates: #25
This commit is contained in:
parent
26b8849104
commit
b5b0acdc62
4 changed files with 24 additions and 3 deletions
|
@ -231,7 +231,6 @@ class TcaTableService
|
|||
$this->tca['ctrl']['cruser_id'],
|
||||
$this->tca['ctrl']['fe_cruser_id'],
|
||||
$this->tca['ctrl']['fe_crgroup_id'],
|
||||
$this->tca['ctrl']['languageField'],
|
||||
$this->tca['ctrl']['origUid'],
|
||||
];
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ Changelog
|
|||
:maxdepth: 1
|
||||
:glob:
|
||||
|
||||
changelog/20180409-25-provide-sys-language-uid
|
||||
changelog/20180408-131-respect-page-cache-clear
|
||||
changelog/20180408-introduce-php70-type-hints
|
||||
changelog/20180406-120-facet-configuration
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
FEATURE 25 "Respect multiple languages" - Provide sys_language_uid
|
||||
==================================================================
|
||||
|
||||
Previously we did not fetch ``sys_language_uid`` field from database. This prevented everyone from
|
||||
working with multiple languages.
|
||||
By not removing the field it gets indexed and provides a very basic way of implementing multiple
|
||||
languages.
|
||||
At least it's now possible to filter search results by current language for now. Still the records
|
||||
are not "valid" as we do not add overlays for now.
|
||||
|
||||
This is a first step into full multi language support.
|
||||
|
||||
Martin Hummer already has a basic proof of concept, based on :ref:`concepts_dataprocessing` working,
|
||||
depending on ``sys_language_uid``.
|
||||
|
||||
See :issue:`25`.
|
|
@ -108,10 +108,14 @@ class TcaTableServiceTest extends AbstractUnitTestCase
|
|||
{
|
||||
$GLOBALS['TCA']['test_table'] = [
|
||||
'ctrl' => [
|
||||
'languageField' => 'sys_language',
|
||||
'languageField' => 'sys_language_uid',
|
||||
],
|
||||
'columns' => [
|
||||
'sys_language' => [],
|
||||
'sys_language_uid' => [
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
],
|
||||
],
|
||||
't3ver_oid' => [],
|
||||
'available_column' => [
|
||||
'config' => [
|
||||
|
@ -141,6 +145,7 @@ class TcaTableServiceTest extends AbstractUnitTestCase
|
|||
[
|
||||
'test_table.uid',
|
||||
'test_table.pid',
|
||||
'test_table.sys_language_uid',
|
||||
'test_table.available_column',
|
||||
],
|
||||
$subject->getFields(),
|
||||
|
|
Loading…
Reference in a new issue