Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion Documentation/Functions/Select.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,30 @@ includeRecordsWithoutDefaultTranslation
.. confval:: includeRecordsWithoutDefaultTranslation
:name: select-includeRecordsWithoutDefaultTranslation
:type: :ref:`boolean <data-type-boolean>` / :ref:`stdWrap <stdwrap>`
:default: 0
:default: depends on the language overlay type, see below

If content language overlay is activated and the option :typoscript:`languageField` is not disabled,
:typoscript:`includeRecordsWithoutDefaultTranslation` allows to additionally fetch records,
which do **not** have a parent in the default language.

If the option is not set, these records are included for the overlay
types of all site configurations, `fallbackType: strict` and
`fallbackType: fallback`. They are left out only for the overlay type
`LanguageAspect::OVERLAYS_ON`, which no site configuration produces. Set
the option to `0` to leave them out:

.. code-block:: typoscript
:caption: EXT:my_sitepackage/Configuration/Sets/MySet/setup.typoscript

lib.translatedNews = CONTENT
lib.translatedNews {
table = tx_news_domain_model_news
select {
pidInList = 12
includeRecordsWithoutDefaultTranslation = 0
}
}


.. _select-selectfields:

Expand Down