[TYPO3] Backend: How to change the way an extension orders records
Brian Bendtsen
nightowl at galnet.dk
Tue Dec 5 09:43:22 CET 2006
Peter Klein wrote:
> Hi Brian. Look in "ext_tables.php" and "tca.php". In one of those 2 files,
> the sorting in BE is defined.
>
Hi
I found this:
$TCA["tx_websiteportfolio_sites"] = Array (
"ctrl" => Array (
"title" =>
"LLL:EXT:websiteportfolio/locallang_db.php:tx_websiteportfolio_sites",
"label" => "title",
"tstamp" => "tstamp",
"crdate" => "crdate",
"cruser_id" => "cruser_id",
"default_sortby" => "ORDER BY title",
"delete" => "deleted",
"enablecolumns" => Array (
"disabled" => "hidden",
),
"dynamicConfigFile" => t3lib_extMgm::extPath($_EXTKEY)."tca.php",
"iconfile" =>
t3lib_extMgm::extRelPath($_EXTKEY)."icon_tx_websiteportfolio_sites.gif",
),
"feInterface" => Array (
"fe_admin_fieldList" => "hidden, title, url, screenshot, description,
particulars, launchdate, category",
)
);
I change the line:
"default_sortby" => "ORDER BY title",
to:
"default_sortby" => "ORDER BY uid DESC",
but it had no effect. And I have tried clearing the cache.
/Brian
More information about the TYPO3-english
mailing list