Sort by most recent videos instead of relevance

Created on 9 October 2016, over 8 years ago
Updated 23 January 2025, 3 months ago

With the new brightcove API v6 that is compatible with v7.x-6.x, the ph library PHP-API-Wrapper controls the sort option by relevance by default. It would be better to have the media browser sorted by most recent instead of relevance especially with sites that have a lot of videos.

this can be accomplished by replacing this line:
$result = $cms->listVideos($search, NULL, $items_per_page, $items_per_page * $page);

by this:
$result = $cms->listVideos($search, '-updated_at', $items_per_page, $items_per_page * $page);

In brightcove_field.video.inc

Feature request
Status

Closed: outdated

Version

6.0

Component

Code

Created by

🇯🇴Jordan mqanneh Amman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024