[TYPO3-english] extbase findAll() default_sortby

Henjo Hoeksma | Stylence me at henjohoeksma.nl
Thu Aug 1 12:03:18 CEST 2013


Hi Muriel,

what about:

protected $defaultOrderings = array(
         'sorting' => Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING
);


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 Thu, Aug 1, 2013 at 10:25 AM, Muriel le Pair <typo3 at strangefruit.nl>wrote:

> Op 30-07-13 16:12, Henjo Hoeksma | Stylence schreef:
>
>
>  the link you provide to Forge explains exactly how to set defaultOrderings
>> in the repository.
>> The stuff you put in the TCA Array are pure for the Backend and Extbase
>> does not look there. These are two separate things.
>>
>
> Hi,
>
> I quess I'm missing something.
> The link explains how to change ASC and DESC with $defaultOrderings.
> But I would like to know how I can set findAll() to order on the sorting
> column (kind of got the impression it is now ordering on the uid).
>
>
> --
> kind regards,
>
> Muriel le Pair
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>


More information about the TYPO3-english mailing list