Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Media improvements (#168)
Browse files Browse the repository at this point in the history
* (feature) Add media_entity_browser module

* (feature) Replace the old media library with the new one

* (fix) [media] Ensure the installation works

* Update core.entity_form_display.comment.recipe_review.default.yml

* Update core.entity_form_display.node.article.default.yml

* Update core.entity_form_display.node.page.default.yml

* Update core.entity_form_display.node.recipe.default.yml
  • Loading branch information
dawehner authored and e0ipso committed Aug 9, 2017
1 parent 5811200 commit 836683d
Show file tree
Hide file tree
Showing 11 changed files with 642 additions and 300 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
"drupal/schemata": "^1.0@alpha",
"drupal/openapi": "^1.0@alpha",
"drupal/material_admin": "1.x-dev",
"drupal/snail": "1.x-dev"
"drupal/snail": "1.x-dev",
"drupal/media_entity_browser": "^1.0@beta"
},
"config": {
"process-timeout": 0
Expand Down
1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module:
language: 0
link: 0
media_entity: 0
media_entity_browser: 0
media_entity_image: 0
menu_ui: 0
migrate: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
uuid: 69ef058a-207d-4eca-8c03-d22705985623
uuid: 3feb2151-fd06-4616-af0c-2b8e0dd04e58
langcode: en
status: true
dependencies:
config:
- media_entity.bundle.image
- views.view.image_library
module:
- dropzonejs_eb_widget
- media_entity
- views
name: image_library
label: 'Image library'
name: media_entity_browser
label: 'Media Entity Browser'
display: modal
display_configuration:
width: '800'
height: '600'
width: '1070'
height: '840'
link_text: 'Select images'
auto_open: false
selection_display: no_display
selection_display_configuration: { }
widget_selector: tabs
widget_selector_configuration: { }
widgets:
da6dec11-70df-4462-9ac5-186d4f16b33c:
6586703a-6976-4124-8a49-cbb07ceaa3b1:
settings:
view: image_library
view: media_entity_browser
view_display: entity_browser_1
submit_text: Select
auto_select: false
uuid: da6dec11-70df-4462-9ac5-186d4f16b33c
weight: 2
uuid: 6586703a-6976-4124-8a49-cbb07ceaa3b1
weight: 3
label: Library
id: view
2f1c5348-a446-4eff-bdc3-7629b2bfeff9:
fa8a606b-934a-470e-8c9e-e24535857dae:
settings:
media_entity_bundle: image
upload_location: 'public://[date:custom:Y]-[date:custom:m]'
Expand All @@ -41,7 +40,7 @@ widgets:
extensions: 'jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp'
submit_text: Select
auto_select: false
uuid: 2f1c5348-a446-4eff-bdc3-7629b2bfeff9
weight: 2
uuid: fa8a606b-934a-470e-8c9e-e24535857dae
weight: 1
label: Upload
id: dropzonejs_media_entity
16 changes: 16 additions & 0 deletions config/sync/image.style.media_entity_browser_thumbnail.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
uuid: d5a42946-6a52-4e46-a31f-225bde7534a8
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: kyNpSwmg-lAVp2WSkg0mEkXaF6nvxrj_xxHqM6iPoCU
name: media_entity_browser_thumbnail
label: 'Media Entity Browser thumbnail'
effects:
1d899e87-51e4-4467-90db-e516c31d4688:
uuid: 1d899e87-51e4-4467-90db-e516c31d4688
id: image_scale_and_crop
weight: 1
data:
width: 350
height: 200
275 changes: 0 additions & 275 deletions config/sync/views.view.image_library.yml

This file was deleted.

Loading

0 comments on commit 836683d

Please sign in to comment.