How to … – TYPO3 fe_userlisting sort by …

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:

  1. How to … sort the feuserlist in TYPO3
  2. How to … use country flags as CSS sprites in Typo3
  3. How to … sort the Typoscript Template
  4. How to … change the RTE linktext in TYPO3

0 Responses to “How to … – TYPO3 fe_userlisting sort by …”


  1. No Comments

Leave a Reply

*