I want a condition to get data, language wise in FE. I don't know how to get current language uid in a where clause in DatabaseQueryProcessor.
I tried different approaches to achieve this, but it doesn't work for me. One of them is:
10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
10 {
// some configuration
where.wrap = sys_category.sys_language_uid = TSFE:language
// Also
where.wrap = sys_category.sys_language_uid = {FE:language}
// Also
where.wrap = sys_category.sys_language_uid = {GP:L}
// Also
where.wrap = sys_category.sys_language_uid = siteLanguage:navigationTitle
// Also
where.wrap = sys_category.sys_language_uid = TSFE:sys_language_uid
}
I know one alternative solution for this will be typoscript condition language wise. But I want this dynamic with every possible language of typo3.
Did you tried this way?
I'm not sure, if typoscript handle
sys_category.sys_language_uid={TSFE:language}orsys_category.sys_language_uid=TSFE:languagewithout curly braces.