diff options
author | Wuzzy <almikes@aol.com> | 2016-08-13 10:19:34 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-13 10:19:34 +0200 |
commit | a8e72e500800f8493fb317cd0f00e5150e4f1950 (patch) | |
tree | 5d638005c5d01332ed05e2d9392243a706df4e5f /API.md | |
parent | 5127c79c2069e3fe9d3ea4c327c67fb5bfe51c2f (diff) |
Add support for custom entry sorting
Diffstat (limited to 'API.md')
-rw-r--r-- | API.md | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -54,10 +54,14 @@ data. First letter capitalized, no puncation at end of sentence, max. 100 characters * `sorting`: (optional) Sorting method of entries - * `"abc"`: Alphabetical (default) - * `"nosort": Entries appear in no particular order - * A table: Entries appear in exactly the same order as specified in the - table of entry IDs + * `"abc"`: Alphabetical (default) + * `"nosort"`: Entries appear in no particular order + * `"custom"`: Manually define the order of entries + * `sorting_data`: Additional data for special sorting methods. + If `sorting=="custom"`, this field must contain a table (list form) in which + the entry IDs are specified in the order they are supposed to appear in the + entry list. All entries which are missing in this table will appear in no + particular order below the final specified one. * `build_formspec`: The template function. Takes entry data as its only parameter (has the data type of the entry data) and must return a formspec which is inserted in the Entry tab. |