[TYPO3-mvc] Language overlay with sys_language_mode=strict and limit/offset
Kevin Ulrich Moschallski
km at 3digit.de
Thu Jan 13 13:51:49 CET 2011
Hi,
i modified getObjectCountByQuery() to do
doLanguageAndWorkspaceOverlay(). It now returns the count of the
localized objects, limit is also possible.
Maybe some of the core developers could have a look over my patch and
maybe the other one i did for fluid widgets. I think language overlays
are a very important feature so this bugs should be closed.
If it is a configuration issue, some advice would be nice.
Thanks for reading.
Reagrds,
Kevin
P.S.: i know that for a bug i should file one in the bugtracker. But as
long i'm not shure that it is a bug i thought discussing it on the list
would be better.
-------------- next part --------------
On 2011-01-12 16:46:45 +0100, Kevin Ulrich Moschallski said:
> Hi Thomas,
>
> did you manage to limit the count to the sys_language? Or should
> countBySysLanguageUid() be used here?
>
> I tried to add $rows =
> $this->doLanguageAndWorkspaceOverlay($query->getSource(), $rows) to
> getObjectCountByQuery() but had no luck. I've to dive deeper into the
> Persistence layer to find out how things work / should work.
>
> Would be nice if somebody from the extbase team could tell us if this
> is a bug or a configuration issue. I'm willing to try to fix any bug,
> but i don't want to waste my time if it is only i wrong configuration
> by me.
>
> Regards,
> Kevin
> On 2010-11-25 19:53:09 +0100, Thomas Heilmann said:
>
>> Hi all,
>>
>> I am trying to use limit/offset and count in a repository with localized
>> objects and sys_language_mode set to strict. The query result for an
>> alternative language contains only translated records; but countAll
>> returns the number of all record. Respectively, $query->setLimit applies
>> the limit to all objects, not only the translated ones.
>>
>> I peeked into the Typo3DbBackend, if I am not missing something,
>> getObjectCountByQuery does not take into account language settings yet
>> (neither does limit/offset). Right?
>>
>> Regards,
>> Thomas
More information about the TYPO3-project-typo3v4mvc
mailing list