TCA basics · Question 6 of 12
Editors should be able to set the order of the records of a custom table in the backend themselves. Which ctrl setting is intended for this?
1 answer is correct. Easy
Show answer
Answer
- B 'sortby' => 'sorting'
Explanation
With sortby the table gets an integer field, usually sorting, that the DataHandler maintains itself when editors move records up or down. Pages and content elements work the same way, as editors also decide their order freely. default_sortby such as 'title ASC', in contrast, only sets a fixed sort order for display in the backend and is ignored as soon as sortby is set. Using a content field such as title as sortby would be a mistake, because the DataHandler would then write numbers into that field.