Repository filepicker file listing columns

Repository filepicker file listing columns

by Anne Krijger -
အကြောင်းပြန်မှု အရေအတွက်: 2

And yet another question on creating a repository to use ins the filepicker ပြုံး

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.

 

 

ပျှမ်းမျှအဆင့်သတ်မှတ်ချက်များ: -
Anne Krijger ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Repository filepicker file listing columns

by Davo Smith -
Core developers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Peer reviewers ၏ ရုပ်ပုံ 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.

Davo Smith ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Repository filepicker file listing columns

by 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.