Skip to content

Instantly share code, notes, and snippets.

@githubrsys
Last active March 16, 2018 18:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save githubrsys/1cf76496658c8d555f90 to your computer and use it in GitHub Desktop.
Save githubrsys/1cf76496658c8d555f90 to your computer and use it in GitHub Desktop.
add sorting to fe_user with own extension

scope

Valid from TYPO3 6.x

summary

Add sorting to fe_users with own Extension

ext_tables.php

\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('fe_users');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users','sorting;;;;1-1-1');

$GLOBALS['TCA']['fe_users']['ctrl']['sortby'] = 'sorting';
unset($GLOBALS['TCA']['fe_users']['ctrl']['default_sortby']);

ext_tables.sql

CREATE TABLE fe_users (
    sorting int(10) DEFAULT '0' NOT NULL,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment