Feature #4932
closedAllow users to see Files when using wplink feature in BuddyPress Docs
0%
Description
When searching for content to attach to a doc via link, buddy press file links are never shown, even when the exact name is provided, as seen in the attached screenshot. And, would it be possible to make a file uploaded to buddypress files a child of a doc, as issue #2523 indicates that direct attachment isn't possible.
Files
Updated by Boone Gorges about 9 years ago
- Subject changed from Allow users to see files in docs to Allow users to see Files when using wplink feature in BuddyPress Docs
- Assignee set to Boone Gorges
- Target version set to 1.9
This is a good idea. Let me see how hard it would be.
Just to be clear: by "files" you are talking about items uploaded under the Files tab of a group?
Updated by Hannah Aizenman about 9 years ago
Boone Gorges wrote:
Just to be clear: by "files" you are talking about items uploaded under the Files tab of a group?
Yes and thanks!
Updated by Boone Gorges almost 9 years ago
- Target version changed from 1.9 to 1.9.2
Updated by Boone Gorges almost 9 years ago
- Status changed from New to Resolved
Okey dokey, I've added this in https://github.com/cuny-academic-commons/cac/commit/d6c4725fe0c30d2f48c9c0b1669398d79d4448d4
When editing a Doc in a group, you'll now see that group's Files at the top of the list when selecting from existing content in the Link dialog.
A note for posterity. The wpLink dialog supports a sort of river/infinite-scroll, which works by fetching the next 20 items when the scroll position reaches a certain vertical position. Behind the scenes, this works by passing an incrementing 'offset' to WP_Query. I didn't feel like covering all the possible cases of altered pagination/offset when dealing with group files, so I ignored it: group files are put at the very top of the results, followed immediately by the first 20 post-type results. The only concern here is performance; there may be some delay in cases where a group has many hundreds of Files. But this will only be the case very rarely.