Merge branch '89-creative-commons' into 'master'
Resolve "A content editor can choose the license for their creative work." See merge request agaric/sites/agaric-com!53
This commit is contained in:
commit
f17bc0aa7e
14 changed files with 412 additions and 2 deletions
14
config/sync/image.style.small_landscape.yml
Normal file
14
config/sync/image.style.small_landscape.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
uuid: ef082871-7e9a-4f4a-befa-094f4091d45f
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
name: small_landscape
|
||||
label: 'Small landscape'
|
||||
effects:
|
||||
87ff4c68-189e-4459-ad57-6834f8181d0a:
|
||||
uuid: 87ff4c68-189e-4459-ad57-6834f8181d0a
|
||||
id: image_resize
|
||||
weight: 1
|
||||
data:
|
||||
width: 88
|
||||
height: 31
|
|
@ -0,0 +1,81 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- drutopia_creative_license
|
||||
id: config_sync.module.drutopia_creative_license
|
||||
snapshotSet: config_sync
|
||||
extensionType: module
|
||||
extensionName: drutopia_creative_license
|
||||
items:
|
||||
-
|
||||
collection: ''
|
||||
name: core.entity_view_display.taxonomy_term.license.default
|
||||
data:
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- taxonomy.vocabulary.license
|
||||
module:
|
||||
- ds
|
||||
- text
|
||||
third_party_settings:
|
||||
ds:
|
||||
layout:
|
||||
id: layout_onecol
|
||||
library: layout_discovery/onecol
|
||||
disable_css: false
|
||||
entity_classes: all_classes
|
||||
settings: { }
|
||||
regions:
|
||||
content:
|
||||
- description
|
||||
id: taxonomy_term.license.default
|
||||
targetEntityType: taxonomy_term
|
||||
bundle: license
|
||||
mode: default
|
||||
content:
|
||||
description:
|
||||
label: hidden
|
||||
type: text_default
|
||||
weight: 0
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
||||
-
|
||||
collection: ''
|
||||
name: field.storage.node.field_license
|
||||
data:
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
- taxonomy
|
||||
id: node.field_license
|
||||
field_name: field_license
|
||||
entity_type: node
|
||||
type: entity_reference
|
||||
settings:
|
||||
target_type: taxonomy_term
|
||||
module: core
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
||||
-
|
||||
collection: ''
|
||||
name: taxonomy.vocabulary.license
|
||||
data:
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
name: License
|
||||
vid: license
|
||||
description: ''
|
||||
hierarchy: 0
|
||||
weight: 0
|
|
@ -0,0 +1,17 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- taxonomy.vocabulary.license
|
||||
id: taxonomy_term.license.changed
|
||||
field_name: changed
|
||||
entity_type: taxonomy_term
|
||||
bundle: license
|
||||
label: Changed
|
||||
description: 'The time that the term was last edited.'
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: changed
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- taxonomy.vocabulary.license
|
||||
module:
|
||||
- text
|
||||
id: taxonomy_term.license.description
|
||||
field_name: description
|
||||
entity_type: taxonomy_term
|
||||
bundle: license
|
||||
label: Description
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: text_long
|
|
@ -0,0 +1,17 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- taxonomy.vocabulary.license
|
||||
id: taxonomy_term.license.metatag
|
||||
field_name: metatag
|
||||
entity_type: taxonomy_term
|
||||
bundle: license
|
||||
label: Metatags
|
||||
description: 'The meta tags for the entity.'
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: map
|
|
@ -0,0 +1,17 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- taxonomy.vocabulary.license
|
||||
id: taxonomy_term.license.name
|
||||
field_name: name
|
||||
entity_type: taxonomy_term
|
||||
bundle: license
|
||||
label: Name
|
||||
description: ''
|
||||
required: true
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- taxonomy.vocabulary.license
|
||||
module:
|
||||
- path
|
||||
id: taxonomy_term.license.path
|
||||
field_name: path
|
||||
entity_type: taxonomy_term
|
||||
bundle: license
|
||||
label: 'URL alias'
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: path
|
|
@ -0,0 +1,21 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- taxonomy.vocabulary.license
|
||||
id: taxonomy_term.license.status
|
||||
field_name: status
|
||||
entity_type: taxonomy_term
|
||||
bundle: license
|
||||
label: Published
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value:
|
||||
-
|
||||
value: 1
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
on_label: 'On'
|
||||
off_label: 'Off'
|
||||
field_type: boolean
|
|
@ -0,0 +1,54 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.taxonomy_term.license.field_license_icon
|
||||
- image.style.thumbnail
|
||||
- taxonomy.vocabulary.license
|
||||
module:
|
||||
- image
|
||||
- path
|
||||
- text
|
||||
id: taxonomy_term.license.default
|
||||
targetEntityType: taxonomy_term
|
||||
bundle: license
|
||||
mode: default
|
||||
content:
|
||||
description:
|
||||
type: text_textfield
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_license_icon:
|
||||
weight: 31
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
preview_image_style: thumbnail
|
||||
third_party_settings: { }
|
||||
type: image_image
|
||||
region: content
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
name:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
|
@ -2,9 +2,12 @@ langcode: en
|
|||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.taxonomy_term.license.field_license_icon
|
||||
- image.style.small_landscape
|
||||
- taxonomy.vocabulary.license
|
||||
module:
|
||||
- ds
|
||||
- image
|
||||
- text
|
||||
third_party_settings:
|
||||
ds:
|
||||
|
@ -16,6 +19,7 @@ third_party_settings:
|
|||
settings: { }
|
||||
regions:
|
||||
content:
|
||||
- field_license_icon
|
||||
- description
|
||||
id: taxonomy_term.license.default
|
||||
targetEntityType: taxonomy_term
|
||||
|
@ -25,8 +29,18 @@ content:
|
|||
description:
|
||||
label: hidden
|
||||
type: text_default
|
||||
weight: 0
|
||||
weight: 1
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
||||
field_license_icon:
|
||||
weight: 0
|
||||
label: visually_hidden
|
||||
settings:
|
||||
image_style: small_landscape
|
||||
image_link: ''
|
||||
third_party_settings: { }
|
||||
type: image
|
||||
region: content
|
||||
hidden:
|
||||
langcode: true
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.taxonomy_term.full
|
||||
- field.field.taxonomy_term.license.field_license_icon
|
||||
- image.style.small_landscape
|
||||
- taxonomy.vocabulary.license
|
||||
module:
|
||||
- ds
|
||||
- image
|
||||
- text
|
||||
third_party_settings:
|
||||
ds:
|
||||
layout:
|
||||
id: layout_onecol
|
||||
library: layout_discovery/onecol
|
||||
disable_css: false
|
||||
entity_classes: all_classes
|
||||
settings: { }
|
||||
regions:
|
||||
content:
|
||||
- field_license_icon
|
||||
- description
|
||||
id: taxonomy_term.license.full
|
||||
targetEntityType: taxonomy_term
|
||||
bundle: license
|
||||
mode: full
|
||||
content:
|
||||
description:
|
||||
label: hidden
|
||||
type: text_default
|
||||
weight: 1
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_license_icon:
|
||||
weight: 0
|
||||
label: visually_hidden
|
||||
settings:
|
||||
image_style: small_landscape
|
||||
image_link: ''
|
||||
third_party_settings: { }
|
||||
type: image
|
||||
region: content
|
||||
hidden:
|
||||
langcode: true
|
|
@ -0,0 +1,47 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.taxonomy_term.teaser
|
||||
- field.field.taxonomy_term.license.field_license_icon
|
||||
- image.style.small_landscape
|
||||
- taxonomy.vocabulary.license
|
||||
module:
|
||||
- ds
|
||||
- image
|
||||
- text
|
||||
third_party_settings:
|
||||
ds:
|
||||
layout:
|
||||
id: layout_onecol
|
||||
library: layout_discovery/onecol
|
||||
disable_css: false
|
||||
entity_classes: all_classes
|
||||
settings: { }
|
||||
regions:
|
||||
content:
|
||||
- field_license_icon
|
||||
- description
|
||||
id: taxonomy_term.license.teaser
|
||||
targetEntityType: taxonomy_term
|
||||
bundle: license
|
||||
mode: teaser
|
||||
content:
|
||||
description:
|
||||
label: hidden
|
||||
type: text_default
|
||||
weight: 1
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_license_icon:
|
||||
weight: 0
|
||||
label: visually_hidden
|
||||
settings:
|
||||
image_style: small_landscape
|
||||
image_link: ''
|
||||
third_party_settings: { }
|
||||
type: image
|
||||
region: content
|
||||
hidden:
|
||||
langcode: true
|
|
@ -0,0 +1,37 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.taxonomy_term.field_license_icon
|
||||
- taxonomy.vocabulary.license
|
||||
module:
|
||||
- image
|
||||
id: taxonomy_term.license.field_license_icon
|
||||
field_name: field_license_icon
|
||||
entity_type: taxonomy_term
|
||||
bundle: license
|
||||
label: Icon
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||
file_extensions: 'png gif jpg jpeg'
|
||||
max_filesize: ''
|
||||
max_resolution: ''
|
||||
min_resolution: ''
|
||||
alt_field: true
|
||||
alt_field_required: true
|
||||
title_field: false
|
||||
title_field_required: false
|
||||
default_image:
|
||||
uuid: ''
|
||||
alt: ''
|
||||
title: ''
|
||||
width: null
|
||||
height: null
|
||||
handler: 'default:file'
|
||||
handler_settings: { }
|
||||
field_type: image
|
|
@ -4,9 +4,15 @@ core: 8.x
|
|||
package: Drutopia
|
||||
dependencies:
|
||||
- config_actions
|
||||
- config_snapshot
|
||||
- drutopia_core
|
||||
- drutopia_creative_license
|
||||
- ds
|
||||
- field
|
||||
- field_group
|
||||
- image
|
||||
- node
|
||||
- path
|
||||
- taxonomy
|
||||
- text
|
||||
version: 8.x-1.0-alpha1
|
||||
|
|
Loading…
Reference in a new issue