How to
… sort the fe_userlisting view in frontend?
In my project i needed to sort the usertable in frontend by first_name or last_name.
The extension manual list the following typoscript setup:
tx_feuserlisting_pi1._DEFAULT_PI_VARS.sort = last_name:0 tx_feuserlisting_pi1._DEFAULT_PI_VARS.sort = first_name:0
But nothing happened …
So i searched for a while an found the solution here.
You need to edit the file “class.tx_feuserlisting_pi1.php” and extend on line 170 the following:
$this->internal['orderByList'] = 'username,name,email,country,city,zip';
to
$this->internal['orderByList'] = 'first_name,last_name,username,name,email,country,city,zip';
THAT’s ALL!
Related posts:
0 Responses to “How to … – TYPO3 fe_userlisting sort by …”
Leave a Reply