You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The display of the media library is handled using the value property :
If the value is file it will display as a list but if the value is something else it will display as a grid (in my example the value is custom_file so it will display as a grid).
This discussion was converted from issue #1972 on February 10, 2024 02:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When creating a custom type in the media library we should be able to set the display of the list :
We have 2 display options currently : list or grid view.
Currently we can add a custom media type this way :
form.blade.php
The display of the media library is handled using the
value
property :If the value is file it will display as a list but if the value is something else it will display as a grid (in my example the value is custom_file so it will display as a grid).
MediaLibrary.vue
Solution
We could add a new optional property into the object to handle the display of the custom type :
form.blade.php
This way we can force the display of the media library for custom types :
MediaLibrary.vue
Versions
Twill version 2.11.0
Beta Was this translation helpful? Give feedback.
All reactions