[Typo3] Sorting problem in my own extension

Peter Russ peter.russ at 4many.net
Thu Aug 11 15:07:42 CEST 2005


Piotr Burda wrote:

> I wrote a simple adress list extension.
> It works fine, but i can`t sort by town
> 
> some lines from extension :
>   // Initializing the query parameters:
> 
> list($this->internal["orderBy"],$this->internal["descFlag"]) = 
> explode(":",$this->piVars["sort"]);
> 
> $this->internal["results_at_a_time"]=t3lib_div::intInRange($lConf["results_at_a_time"],0,1000,20); 
>                // Number of results to show in a listing.
> 
> $this->internal["maxPages"]=t3lib_div::intInRange($lConf["maxPages"],0,1000,2);; 
>                // The maximum number of "pages" in the browse-box: "Page 
> 1", "Page 2", etc.
> 
> $this->internal["searchFieldList"]="name,zip,town,street,phone,contact,branch,province,www,email"; 
> 
> $this->internal["orderByList"]="uid";
> 
> 
> i changed uid to town in last line but it doesn't work too.
> 
> Where is the problem?
What is $this->internal["orderBy"] and $this->internal["orderByList"] doing?

Regs. Peter.
-- 
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ



More information about the TYPO3-english mailing list