Repository filepicker file listing columns

Repository filepicker file listing columns

por Anne Krijger -
Número de respostas: 2

And yet another question on creating a repository to use ins the filepicker sorriso

When displaying the result of a search,
(the ['list'] element of the array returned by the search($search_text, $page = 0) function)
4 columns are shown;
Name, last change, size and type

Is there any way to influence which columns are used, or maybe add one at the end?

Anne.

 

 

Media de puntuacións: -
En resposta a Anne Krijger

Re: Repository filepicker file listing columns

por Davo Smith -
Imaxe de Core developers Imaxe de Particularly helpful Moodlers Imaxe de Peer reviewers Imaxe de Plugin developers

Anne,

If you want to customise the output of the filepicker, then the only method I know of (short of core code changes) is this: http://docs.moodle.org/dev/Repository_plugins_embedding_external_file_chooser

It has the downside of requiring you to re-implement much of the functionality yourself and of losing access to the controls across the top of the filepicker, but it does give you a lot of flexibility in the output.

En resposta a Davo Smith

Re: Repository filepicker file listing columns

por Anne Krijger -

Hi Davo,

Thanks.
I did start out looking at the callback functionality as implemented in the Equella repository, but decided it was to 'complicated' to implement within the scope of the project I'm working on. I did already talk to the client about this possibility.

I was just wondering if I was overlooking a way to do this in the default functionality.

Because of all the JS/AJAX/YUI going on I didn't want to dive in too deep at this point ;)

Anne.