[TYPO3-mvc] custom query including the hidden Elements

Andreas Kiessling kiessling at pluspol.info
Wed May 19 11:03:00 CEST 2010


Hi,

On 18.05.2010 19:01, Sebastian Kurfürst wrote:
> Hey,
>
>> enableFields also supports fetching hidden records. How about a query
>> setting to toggle that behaviour?
> we could do this. It'd be needed inside the "QuerySettings" object, as
> they are v4 specific.
>
> Feel free to provide a patch :)

alright. Will take some time, but i will do.

I needed that setting quite a lot, when dealing with some multilanguage 
requirements in pi_base extensions.

Example: a record shell be hidden in default language, but displayed in 
e.g. L=1 AND / OR L=2
If you create the record with this language directly set, you have to 
struggle with your query settings and cannot use l10n_mode. So i ended 
up fetching also the hidden records (with sys_language_uid = 0) and then 
overlay the localized records with hideNonTranslated. Though this might 
be not the best / fastest solution, it made handling of localized 
records very flexible at the cost of hiding all related records, not 
only the "default" one if you want to "hide a record".

Are there any plans to further improve /customize multilanguage 
handling? Maybe a TS / Flexform setting could be used to configure such 
handling of translated records?


Regards,
Andreas


More information about the TYPO3-project-typo3v4mvc mailing list