Can I freely modify the order of the content list?
You can modify the content list order in the Configure Endpoint dialog.
In the API module, scroll down to the target endpoint and click [Update].
Setting the sort order
- Set the "Model" section of the dialog as follows:
- Category:
Content
- Model:
Topics
- Operation:
list
2. Under "Parameters", fill in the "order_query" field. The allowed values are listed below.
Possible values and sort orders
Values
topics_id
(content ID)order_no
(sort number)ymd
(post date)post_time
(post time)contents_type
(category)subject
(title)regular_flg
(display on top)inst_ymdhi
(date and time of creation)update_ymdhi
(date and time of last update)topics_group_id
(content group ID)favorite_cnt
(number of times favorited)comment_cnt
(number of times comment)ext_col_nn
(additional field; *nn
indicates the field number)
Note
- The "Hide date" function in the Content structure editor allows you to switch between using
ymd
(when disabled) andorder_no
(when enabled). Also,post_time
is only available when "Also include time (hh:mm)" is enabled. favorite_cnt
is only available when "get_favorite_cnt" is enabled in the API parameter settings.comment_cnt
is only available when "get_comment_cnt" is enabled in the API parameter settings.
Example description
To display contents in ascending order by content ID, enter topics_id:asc
in "order_query".
Sort orders
asc
(low to high)desc
(high to low)
caution
Fields that use repetition may not be sorted properly.
Support
If you have any other questions, please contact us or check out Our Slack Community.