-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Featured image support for events #17
Comments
Events do support this, it can be toggled in the general settings tabd, but you can forceably enable it too since the array passed to |
Awesome. That means we just have to enable this in our front-end On 04/17/15 15:02, Stephen Harris wrote:
|
Size is hardcoded to 'medium' size at the moment. See #17.
This should be done in the recent commits. Note: In the WP admin area, only users with the Should we dynamically give these users the |
Awesome - thanks, @r-a-y.
Yeah, if you can easily do this, please do. Prior art: https://github.com/boonebgorges/buddypress-docs/blob/master/includes/attachments.php#L36 https://github.com/boonebgorges/buddypress-docs/blob/master/includes/attachments.php#L597 |
This allows users with restricted roles like 'subscriber' and 'contributor' to set the featured image for event posts. See #17.
This should be completed now. The BP Docs meta cap example helped! |
@r-a-y The way this is currently built, users will see all items from the media library in the media modal. Is there a straightforward way to make this not happen? I kludge it in BuddyPress Docs like this https://github.com/boonebgorges/buddypress-docs/blob/master/includes/attachments.php#L394. I think we probably shouldn't ship it on the Commons as-is - there is the potential for confusion and perhaps privacy problems. If it's not easy to filter media library images, we should probably disable this feature for v1. |
@boonebgorges I've added some code to filter attachments according to the logged-in user when selecting a "Featured Image" instead of by the current post as in BP Docs. I also would have loved to put this in the WP Frontend Admin Screen library, but it's too late to add the filter in the class before WP can see it. |
👍 |
Canonical events usually use the featured image as the post header. So in these cases, do not show the featured image again. See #17.
Forgot to close this one as well! |
It would be cool for events to support a featured image, which could then be displayed in various places (single event view, activity streams, etc). Does event-organiser support this already? If not, maybe it'd make for a good upstream improvement.
The text was updated successfully, but these errors were encountered: