Skip to main content

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].

fetched from Gyazo fetched from Gyazo

Setting the sort order

  1. Set the "Model" section of the dialog as follows:
  • Category: Content
  • Model: Topics
  • Operation: list

fetched from Gyazo 2. Under "Parameters", fill in the "order_query" field. The allowed values are listed below.

Image from Gyazo

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)
  • open_flg (publication flag)
  • slug (slug)
  • contents_type_nm (category name)
  • contents_type_nm_2 (category name 2)
  • contents_type_nm_3 (category name 3)
  • open_sta_date (scheduled publish date)
  • open_end_date (scheduled unpublish date)
  • favorite_cnt (number of times favorited)
  • favoriteX_cnt (number of favorites for each action type)
  • comment_cnt (number of comments)
  • vector_distance (vector distance)
  • 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) and order_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.
  • open_sta_date / open_end_date are only available when add_open_ymdhi is enabled in the API parameter settings.
  • vector_distance is only available when performing vector search using the vector_search or similar_search_id query parameters.

Example description

To display contents in ascending order by content ID, enter topics_id:asc in "order_query".

Image from Gyazo 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.