Filtering Repository listings based on the invocation context of the File Picker

Filtering Repository listings based on the invocation context of the File Picker

by Janek Lasocki-Biczysko -
Number of replies: 0

There are a few ways that/contexts from which the File Picker can be invoked (Add File.., Insert Image into TinyMCE, Insert Media into TinyMCE etc.).

Is there a way to know which of these triggered the File Picker, from within your Repository Plugin?

I'm looking for a way to tell my Repository plugin to filter its listings based on how it was invoked.

Cheers!

 

(originally here, reposting in Respositories Topic for more exposure)

Average of ratings: -