Project

General

Profile

Actions

Feature #20209

closed

Feature #19592: Groups Page Re-Design

Port CSV Editor's cover image selector to BuddyPress groups

Added by Raymond Hoh 3 months ago. Updated about 1 month ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Groups (misc)
Target version:
Start date:
2024-04-18
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

The CV Editor includes a preset cover image selector.

We're hoping that we can port this functionality over to BuddyPress groups. The CV Editor's implementation has a custom REST API endpoint to set the cover image. BuddyPress also has a REST API endpoint to set the group's cover image: https://github.com/buddypress/BP-REST/blob/master/includes/bp-groups/classes/class-bp-rest-attachments-group-cover-endpoint.php . Perhaps it is possible to simply switch between the two REST API endpoints, but I have a feeling it might not be that easy. To add the markup for the "Select a Commons Art banner" link as per the mockup, this can be added to the /groups/single/admin/group-cover-image.php template part, the Backbone /assets/_attachments/cover-images.index.php template part (this would require a theme template override) or the do_action() hooks available in those templates.

Jeremy, let us know if there are any deficiencies in the BP group cover image REST API and whether it will be much work to get the CV Editor's preset cover image selector working with BuddyPress groups.


Files

Groups - Manage - Cover Image.png (902 KB) Groups - Manage - Cover Image.png Raymond Hoh, 2024-04-19 12:33 AM
Actions

Also available in: Atom PDF