[Typo3] how to change sorting listView in extension
Daniel Doesburg
typo3 at doesburg.biz
Wed Aug 3 14:58:34 CEST 2005
Erwin Wondergem schreef:
> Hi all,
>
> creating a new plugin with the kickstarter, showing a list of records,
> i was wondering how to change the sorting of the lists. There are two
>
> Secondly i found within my extension class:
> list($this->internal['orderBy'],$this->internal['descFlag']) =
> explode(':',$this->piVars['sort']);
>
> Where do i have to set the default settings of
> $this->internal['orderBy'] and $this->internal['descFlag']?
>
> Hope you can help me out!
>
> Cheers, Erwin
>
The default setting is set by the line who starts with:
$this->internal['orderByList']
For the manual sort (sorted in the listview of the backend) change it to:
$this->internal['orderByList']='sorting';
Success,
Daniel
More information about the TYPO3-english
mailing list