IchHabRecht / mask_export

Export your mask elements as extension
GNU General Public License v2.0
45 stars 27 forks source link

Language: All not displayed #108

Closed aschmutt closed 6 years ago

aschmutt commented 6 years ago

A mask_export content element with Language=All (sys_language_uid=-1) is not displayed. Not sure if this is a solution or a workaround: In Configuration/TypoScript/setup.txt add language to dataProcessing:

dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
dataProcessing.10 {
    if.isTrue.field = tx_mask_content_1
    table = tt_content
    pidInList.field = pid
    where = tx_mask_content_1_parent=###uid### AND deleted=0 AND hidden=0 AND colPos='999'  AND sys_language_uid IN (###language###, -1)
    orderBy = sorting
    markers {
        uid.field = uid
        language.field = sys_language_uid
    }
    languageField = 0
    as = data_tx_mask_content_1
}

This was tested in a environment with only one language (sys_languag_uid=0). Issue is in both 7.6 and 8.7

IchHabRecht commented 6 years ago

Hi @aschmutt,

As the export doesn't care about the sys_language_uid at all (there is no constraint added at all), I don't understand the problem completely. Would you mind to share more information about your setup? Have you changed anything manually? Which version of mask_export are you using?

Thanks for your help.

aschmutt commented 6 years ago

I just tested again, and realized this seems to be default TYPO3 behaviour. Not sure if its a bug or a wanted behavior?

Test1: TYPO3 8.7.6, mask_export 0.9.1 Test2: TYPO3 7.6.23, mask_export 0.9.1

IchHabRecht commented 6 years ago

Hi @aschmutt,

Sorry I come back that late, but I still do not understand the problem. The language handling of the DatabaseQueryProcessor is done in typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:7479 and includes sys_language_uid -1 as well. As this is all done with proper TYPO3 Api I have no clue how I can help you with the mask_export extension. If possible, please give me some more information about your installation or create a forge issue ticket for the TYPO3 core itself (see https://forge.typo3.org/projects/typo3cms-core/issues).

aschmutt commented 6 years ago

yes this can be closed here - this is not related to mask_export, its from TYPO3 core. I just noticed it here first, as I use it in most of my projects.