https://twill.io logo
Hello, id like to extend the MediaLibrary Grid vue...
# ❓questions
k
Hello, id like to extend the MediaLibrary Grid vue component to include filenames, I know extending/overriding the twig based layouts is possible by just placing the new templates in the appropriate
views
subdirectory. Is this possible for vue components aswell? Or do i need to publish the whole frontend vue project and edit/rebuild it that way? Tried finding info about this in the docs, but didnt see anything except the part about building new custom form vue components. (Twig 2)
i
Hi @Koili Vue components that are at the root of the components folder in Twill can be override individually by placing them in your resources folder (specific folder can be configured in twill config). From there you would use artisan twill:build (and twill:dev alongside TWILL_DEV_MODE=true in your Laravel .env). The media library grid already has a feature to show filenames though!
Set
twill.media_library.show_file_name
to true
k
yea i just drilled down to where the showFileName value was read from PHP and got to it eventually
but thanks a lot
this is also great to know since ill probabbly need something that isnt already implemented eventually
thanks for the quick responses
i assumed that all the available config values were in the media library config example here https://twill.io/docs/getting-started/configuration.html#media-library thats why i got confused about where the config value is read from
i
sure! there are components that can't be changed using this automated approach but there's a simple trick where you just copy the ones you need to twill's frontend folder in vendor before running the build
ha thanks for flagging, that needs to be updated
k
is it worth doing PRs/bug reports for 2.0 docs? or are they gonna be rewritten anyway?
or is it just noise for you guys
i
most of it is still there in the new twill 3.0 docs so if you do please submit against 3.x
k
alright thanks!