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:
mlncn 2019-01-20 05:16:56 +00:00
commit f17bc0aa7e
14 changed files with 412 additions and 2 deletions

View 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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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: { }

View file

@ -2,9 +2,12 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- field.field.taxonomy_term.license.field_license_icon
- image.style.small_landscape
- taxonomy.vocabulary.license - taxonomy.vocabulary.license
module: module:
- ds - ds
- image
- text - text
third_party_settings: third_party_settings:
ds: ds:
@ -16,6 +19,7 @@ third_party_settings:
settings: { } settings: { }
regions: regions:
content: content:
- field_license_icon
- description - description
id: taxonomy_term.license.default id: taxonomy_term.license.default
targetEntityType: taxonomy_term targetEntityType: taxonomy_term
@ -25,8 +29,18 @@ content:
description: description:
label: hidden label: hidden
type: text_default type: text_default
weight: 0 weight: 1
region: content region: content
settings: { } settings: { }
third_party_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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -4,9 +4,15 @@ core: 8.x
package: Drutopia package: Drutopia
dependencies: dependencies:
- config_actions - config_actions
- config_snapshot
- drutopia_core - drutopia_core
- drutopia_creative_license
- ds
- field - field
- field_group - field_group
- image
- node - node
- path
- taxonomy - taxonomy
- text
version: 8.x-1.0-alpha1 version: 8.x-1.0-alpha1