-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b618180
Showing
42 changed files
with
2,245 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Модуль для создания галереи на Drupal 8. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "kvantstudio/site_gallery", | ||
"description": "Module to create a gallery on Drupal 8.", | ||
"type": "drupal-custom-module", | ||
"keywords": ["Drupal"], | ||
"license": "GPL-2.0-only", | ||
"authors": [{ | ||
"name": "Pavel Filinkov", | ||
"email": "[email protected]", | ||
"homepage": "https://filinkov.ru", | ||
"role": "Main developer" | ||
}], | ||
"support": { | ||
"email": "[email protected]" | ||
}, | ||
"minimum-stability": "dev", | ||
"require": { | ||
"kvantstudio/kvantstudio": "^1.0.0" | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
config/install/field.field.node.site_gallery.field_gallery_category.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
langcode: ru | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_gallery_category | ||
- node.type.site_gallery | ||
- taxonomy.vocabulary.site_gallery | ||
_core: | ||
default_config_hash: 6vBo2LcCHRd2bV1W0BYZG8_nWI6PdKpUY5iKcFU-odk | ||
id: node.site_gallery.field_gallery_category | ||
field_name: field_gallery_category | ||
entity_type: node | ||
bundle: site_gallery | ||
label: 'Категория медиагалереи' | ||
description: '' | ||
required: true | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:taxonomy_term' | ||
handler_settings: | ||
target_bundles: | ||
site_gallery: site_gallery | ||
sort: | ||
field: _none | ||
auto_create: false | ||
auto_create_bundle: '' | ||
field_type: entity_reference |
20 changes: 20 additions & 0 deletions
20
config/install/field.field.node.site_gallery.field_summary.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
langcode: ru | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_summary | ||
- node.type.site_gallery | ||
module: | ||
- text | ||
id: node.site_gallery.field_summary | ||
field_name: field_summary | ||
entity_type: node | ||
bundle: site_gallery | ||
label: 'Краткое описание' | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: text_long |
22 changes: 22 additions & 0 deletions
22
config/install/field.field.node.site_gallery.field_youtube.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
langcode: ru | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_youtube | ||
- node.type.site_gallery | ||
module: | ||
- link | ||
id: node.site_gallery.field_youtube | ||
field_name: field_youtube | ||
entity_type: node | ||
bundle: site_gallery | ||
label: 'Ссылка на ролик YouTube' | ||
description: '' | ||
required: false | ||
translatable: true | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
link_type: 16 | ||
title: 1 | ||
field_type: link |
37 changes: 37 additions & 0 deletions
37
config/install/field.field.taxonomy_term.site_gallery.field_image.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
langcode: ru | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.taxonomy_term.field_image | ||
- taxonomy.vocabulary.site_gallery | ||
module: | ||
- image | ||
id: taxonomy_term.site_gallery.field_image | ||
field_name: field_image | ||
entity_type: taxonomy_term | ||
bundle: site_gallery | ||
label: 'Изображение категории' | ||
description: '' | ||
required: false | ||
translatable: true | ||
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 |
19 changes: 19 additions & 0 deletions
19
config/install/field.storage.node.field_gallery_category.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
langcode: ru | ||
status: true | ||
dependencies: | ||
module: | ||
- node | ||
- taxonomy | ||
id: node.field_gallery_category | ||
field_name: field_gallery_category | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
langcode: ru | ||
status: true | ||
dependencies: | ||
module: | ||
- node | ||
- text | ||
id: node.field_summary | ||
field_name: field_summary | ||
entity_type: node | ||
type: text_long | ||
settings: { } | ||
module: text | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
langcode: ru | ||
status: true | ||
dependencies: | ||
module: | ||
- link | ||
- node | ||
id: node.field_youtube | ||
field_name: field_youtube | ||
entity_type: node | ||
type: link | ||
settings: { } | ||
module: link | ||
locked: false | ||
cardinality: -1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
langcode: ru | ||
status: true | ||
dependencies: | ||
module: | ||
- menu_ui | ||
third_party_settings: | ||
menu_ui: | ||
available_menus: { } | ||
parent: '' | ||
name: Медиагалерея | ||
type: site_gallery | ||
description: 'Медиагалерея для создания фотоальбомов или видеоальбомов.' | ||
help: '' | ||
new_revision: false | ||
preview_mode: 1 | ||
display_submitted: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
langcode: ru | ||
status: true | ||
dependencies: | ||
module: | ||
- node | ||
id: node_site_gallery | ||
label: 'Название альбома медиагалереи' | ||
type: 'canonical_entities:node' | ||
pattern: 'gallery/[node:title]' | ||
selection_criteria: | ||
18b7522e-9ba7-47a5-b07b-54a4f6b34f54: | ||
id: node_type | ||
bundles: | ||
site_gallery: site_gallery | ||
negate: false | ||
context_mapping: | ||
node: node | ||
uuid: 18b7522e-9ba7-47a5-b07b-54a4f6b34f54 | ||
selection_logic: and | ||
weight: -5 | ||
relationships: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
langcode: ru | ||
status: true | ||
dependencies: | ||
module: | ||
- ctools | ||
- taxonomy | ||
id: taxonomy_site_gallery | ||
label: 'Название категории медиагалереи' | ||
type: 'canonical_entities:taxonomy_term' | ||
pattern: 'gallery/[term:name]' | ||
selection_criteria: | ||
c8030d77-dfea-40d2-8985-d5212fdd2cba: | ||
id: 'entity_bundle:taxonomy_term' | ||
bundles: | ||
site_gallery: site_gallery | ||
negate: false | ||
context_mapping: | ||
taxonomy_term: taxonomy_term | ||
uuid: c8030d77-dfea-40d2-8985-d5212fdd2cba | ||
selection_logic: and | ||
weight: -5 | ||
relationships: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
langcode: ru | ||
status: true | ||
dependencies: { } | ||
name: Медиагалерея | ||
vid: site_gallery | ||
description: 'Категории альбомов для медиагалереи.' | ||
hierarchy: 0 | ||
weight: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
enable_override: 1 | ||
view: taxonomy_term_gallery | ||
view_display: default | ||
inherit_settings: 1 | ||
pass_arguments: 0 |
Oops, something went wrong.