This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

dzintars
dzintars

Hello, I want to add second media widget to the backend menu with different folder. Also, i want to add description field for the media files. Is it possible?

JeffGoldblum
JeffGoldblum

Yes it's possible, just dynamically extend the configuration to change the folder used by the MediaLibrary using Config::set('key', 'value') before rendering the widget.

As far as adding description field for media files, there was a concept to add support for metadata for media library items (https://github.com/octobercms/october/issues/3204) a while ago, but right now probably the easiest way of achieving what you're looking for is to use a repeater with mediafinder and textarea fields.

dzintars
dzintars

Sorry, but i not undestand how (need to create new plugin folder - plugin.php), where put this config and how about route Backend::url('backend/media_other') ??? Can you, please, show same sample.

JeffGoldblum
JeffGoldblum

You can use this plugin instead then: https://octobercms.com/plugin/luketowers-filelocker.

You'll still have to find a different way to manage descriptions for media files.

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.