Changes between Version 8 and Version 9 of S3/S3SQLForm


Ignore:
Timestamp:
02/21/13 09:28:21 (9 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3SQLForm

    v8 v9  
    142142=== Sorting of Inline-Components ===
    143143
    144 It is possible to sort the inline-items by specifying an {{{orderby}}} option:
     144It is possible to sort the inline-items by specifying an {{{orderby}}} option with a field selector relative to the component table:
    145145
    146146{{{
     
    153153}}}
    154154
    155 To specify the sort order, the {{{orderby}}}-option also accepts a tuple like: {{{("location_id$name", "desc")}}}.
     155To specify a different sort order, the {{{orderby}}}-option also accepts a tuple like: {{{("location_id$name", "desc")}}} (default is "asc").
    156156
    157157    '''Note:''' the field selector used in orderby must give exactly one value per row (i.e. use only forward-links, not component fields or list:types), otherwise the same component item would appear multiple times in the form (due to the left join involved).