[TYPO3-mvc] FED SortViewHelper

Claus Due claus at wildside.dk
Mon Dec 12 10:08:08 CET 2011


Hi Henjo,

Sucks that it didn't help. The only think I can think of is that the property in your sortBy for some reason cannot be fetched - i.e. a missing getDate() method on the object stored in {person.items}.

You could try inspecting the $sorted array in the sortObjectStorage() method on Tx_Fed_ViewHelpers_Data_SortViewHelper to find out what is going wrong.

Hoping this helps,
Claus

On Dec 12, 2011, at 9:28 AM, Henjo Hoeksma wrote:

> Hi Claus,
> 
> thanks for your response. Noticed older versions use it too.
> The problem still exists though, even with the format('U'): the sorting
> doesn't seem to work at all.
> 
> Any clue on why it doesn't seem to do anything?
> 
> Kind regards,
> 
> Henjo
> 
> Problems are small because we learned how to deal with them.
> Problems are big because we need to learn how to deal with them.
> 
> 
> On Sat, Dec 10, 2011 at 11:31, Claus Due <claus at wildside.dk> wrote:
> 
>> Hi Henjo,
>> 
>> That was sort of a blunder on my part. I run a 5.3 IDE and relied on auto
>> completion for the DateTime->getTimestamp(). Reading the docs I see that
>> ->format('U') works just as well (really, better - since it supports dates
>> before UNIX epoch start). So I changed it right away.
>> 
>> https://review.typo3.org/#change,7175
>> 
>> You can apply this patch right now - or wait for sunday evening/monday
>> morning when I plan to make a new TER release. Now, there are no other
>> ->getTimestamp() calls and - to my knowldedge - no other 5.3-only features
>> are depended upon.
>> 
>> Sorry for the inconvenience.
>> 
>> Cheers,
>> Claus
>> 
>> 
>> PS: an older version of FED won't help unfortunately. Older versions will
>> have the same problem.
>> 
>> 
>> On Dec 9, 2011, at 5:04 PM, Henjo Hoeksma wrote:
>> 
>>> Hi Frank,
>>> 
>>> not at this point. I will see if I can get an older version of FED then
>> and
>>> see if that works.
>>> Thanks for your response!
>>> 
>>> 
>>> Kind regards,
>>> 
>>> Henjo
>>> 
>>> Problems are small because we learned how to deal with them.
>>> Problems are big because we need to learn how to deal with them.
>>> 
>>> 
>>> On Fri, Dec 9, 2011 at 16:12, Frank Gerards <F.Gerards at esolut.de> wrote:
>>> 
>>>> Hi,
>>>> 
>>>> what version of FED are u using ? 1.4.x is optimized for TYPO3 4.6 thus
>>>> needing PHP 5.3.
>>>> Upgrading is not an option ?
>>>> 
>>>> 
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:
>>>> typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Henjo
>>>> Hoeksma
>>>> Gesendet: Freitag, 9. Dezember 2011 15:27
>>>> An: TYPO3 v4 MVC project
>>>> Betreff: Re: [TYPO3-mvc] FED SortViewHelper
>>>> 
>>>> Hi Lorenz,
>>>> 
>>>> thanks. I might have to fall back to that. But I do like the idea of
>> having
>>>> a viewhelper around for this stuff ;-)
>>>> 
>>>> Kind regards,
>>>> 
>>>> Henjo
>>>> 
>>>> Problems are small because we learned how to deal with them.
>>>> Problems are big because we need to learn how to deal with them.
>>>> 
>>>> 
>>>> On Fri, Dec 9, 2011 at 13:05, Lorenz Ulrich <lorenz-typo3 at visol.ch>
>> wrote:
>>>> 
>>>>> Hi Henjo
>>>>> 
>>>>> I don't know the solution for your particular problem, but there is a
>> PHP
>>>>> workaround for sorting child objects, see thread
>>>>> 
>>>>> Ordering of Tx_Extbase_Persistence_**ObjectStorage Objects
>>>>> 
>>>>> Best regards,
>>>>> 
>>>>> Lorenz
>>>>> 
>>>>> 
>>>>> Am 09.12.2011 12:17, schrieb Henjo Hoeksma:
>>>>> 
>>>>> ______________________________**_________________
>>>>> TYPO3-project-typo3v4mvc mailing list
>>>>> TYPO3-project-typo3v4mvc@**lists.typo3.org<
>>>> TYPO3-project-typo3v4mvc at lists.typo3.org>
>>>>> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
>>>>> project-typo3v4mvc<
>>>> 
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>>>>> 
>>>> _______________________________________________
>>>> TYPO3-project-typo3v4mvc mailing list
>>>> TYPO3-project-typo3v4mvc at lists.typo3.org
>>>> 
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>>> _______________________________________________
>>>> TYPO3-project-typo3v4mvc mailing list
>>>> TYPO3-project-typo3v4mvc at lists.typo3.org
>>>> 
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>>> 
>>> _______________________________________________
>>> TYPO3-project-typo3v4mvc mailing list
>>> TYPO3-project-typo3v4mvc at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>> 
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>> 
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list