201 lines
4.8 KiB
YAML
201 lines
4.8 KiB
YAML
|
langcode: en
|
||
|
status: true
|
||
|
dependencies:
|
||
|
module:
|
||
|
- eca_base
|
||
|
- eca_config
|
||
|
- eca_content
|
||
|
- eca_misc
|
||
|
- eca_user
|
||
|
id: node_sitemap_settings
|
||
|
modeller: bpmn_io
|
||
|
label: 'Automatically configure sitemap settings for content types'
|
||
|
version: 1.0.0
|
||
|
weight: 0
|
||
|
events:
|
||
|
Event_save_config:
|
||
|
plugin: 'config:save'
|
||
|
label: 'Create node bundle'
|
||
|
configuration:
|
||
|
config_name: node.type.
|
||
|
sync_mode: 'no'
|
||
|
write_mode: new
|
||
|
successors:
|
||
|
-
|
||
|
id: Activity_switch_user
|
||
|
condition: Flow_path_is_not_add_bundle
|
||
|
Event_applied_seo_tools:
|
||
|
plugin: 'drupal:recipe_applied'
|
||
|
label: 'SEO Tools applied'
|
||
|
configuration:
|
||
|
recipe_base_path: drupal_cms_seo_tools
|
||
|
successors:
|
||
|
-
|
||
|
id: Activity_1ghfkn0
|
||
|
condition: ''
|
||
|
conditions:
|
||
|
Flow_number_of_bundles:
|
||
|
plugin: eca_count
|
||
|
configuration:
|
||
|
negate: false
|
||
|
case: false
|
||
|
left: bundles
|
||
|
right: '0'
|
||
|
operator: greaterthan
|
||
|
type: numeric
|
||
|
Flow_path_is_not_add_bundle:
|
||
|
plugin: eca_scalar
|
||
|
configuration:
|
||
|
case: false
|
||
|
left: '[current-page:url:path]'
|
||
|
right: /admin/structure/types/add
|
||
|
operator: equal
|
||
|
type: value
|
||
|
negate: true
|
||
|
Flow_config_is_empty:
|
||
|
plugin: eca_scalar
|
||
|
configuration:
|
||
|
negate: false
|
||
|
case: false
|
||
|
left: '[priority]'
|
||
|
right: priority
|
||
|
operator: contains
|
||
|
type: value
|
||
|
Flow_config_exists:
|
||
|
plugin: eca_scalar
|
||
|
configuration:
|
||
|
case: false
|
||
|
left: '[priority]'
|
||
|
right: priority
|
||
|
operator: contains
|
||
|
type: value
|
||
|
negate: true
|
||
|
gateways:
|
||
|
Gateway_AND_1:
|
||
|
type: 0
|
||
|
successors:
|
||
|
-
|
||
|
id: Activity_get_bundle_id
|
||
|
condition: Flow_number_of_bundles
|
||
|
actions:
|
||
|
Activity_set_bundle_id_to_token:
|
||
|
plugin: eca_token_set_value
|
||
|
label: 'Remember bundle id'
|
||
|
configuration:
|
||
|
token_name: bundle
|
||
|
token_value: '[config:type]'
|
||
|
use_yaml: false
|
||
|
successors:
|
||
|
-
|
||
|
id: Activity_read_sitemap_config_for_bundle
|
||
|
condition: ''
|
||
|
Activity_set_index:
|
||
|
plugin: eca_config_write
|
||
|
label: 'Set index'
|
||
|
configuration:
|
||
|
config_value: '1'
|
||
|
use_yaml: false
|
||
|
save_config: true
|
||
|
config_name: 'simple_sitemap.bundle_settings.default.node.[bundle]'
|
||
|
config_key: index
|
||
|
successors:
|
||
|
-
|
||
|
id: Activity_set_priority
|
||
|
condition: ''
|
||
|
Activity_set_priority:
|
||
|
plugin: eca_config_write
|
||
|
label: 'Set priority'
|
||
|
configuration:
|
||
|
config_value: '0.9'
|
||
|
use_yaml: false
|
||
|
save_config: true
|
||
|
config_name: 'simple_sitemap.bundle_settings.default.node.[bundle]'
|
||
|
config_key: priority
|
||
|
successors:
|
||
|
-
|
||
|
id: Activity_set_changefreq
|
||
|
condition: ''
|
||
|
Activity_set_changefreq:
|
||
|
plugin: eca_config_write
|
||
|
label: 'Set changefreq'
|
||
|
configuration:
|
||
|
config_value: daily
|
||
|
use_yaml: false
|
||
|
save_config: true
|
||
|
config_name: 'simple_sitemap.bundle_settings.default.node.[bundle]'
|
||
|
config_key: changefreq
|
||
|
successors:
|
||
|
-
|
||
|
id: Activity_set_include_images
|
||
|
condition: ''
|
||
|
Activity_set_include_images:
|
||
|
plugin: eca_config_write
|
||
|
label: 'Set include_images'
|
||
|
configuration:
|
||
|
config_value: '0'
|
||
|
use_yaml: false
|
||
|
save_config: true
|
||
|
config_name: 'simple_sitemap.bundle_settings.default.node.[bundle]'
|
||
|
config_key: include_images
|
||
|
successors:
|
||
|
-
|
||
|
id: Gateway_AND_1
|
||
|
condition: ''
|
||
|
Activity_get_list_of_bundles:
|
||
|
plugin: eca_get_bundle_list
|
||
|
label: 'Get bundles'
|
||
|
configuration:
|
||
|
token_name: bundles
|
||
|
type: node
|
||
|
mode: ids
|
||
|
successors:
|
||
|
-
|
||
|
id: Gateway_AND_1
|
||
|
condition: ''
|
||
|
Activity_get_bundle_id:
|
||
|
plugin: eca_list_remove
|
||
|
label: 'Get next bundle ID'
|
||
|
configuration:
|
||
|
value: ''
|
||
|
token_name: bundle
|
||
|
method: first
|
||
|
index: ''
|
||
|
list_token: bundles
|
||
|
successors:
|
||
|
-
|
||
|
id: Activity_read_sitemap_config_for_bundle
|
||
|
condition: ''
|
||
|
Activity_read_sitemap_config_for_bundle:
|
||
|
plugin: eca_config_read
|
||
|
label: 'Read sitemap setting'
|
||
|
configuration:
|
||
|
token_name: priority
|
||
|
include_overridden: true
|
||
|
config_name: 'simple_sitemap.bundle_settings.default.node.[bundle]'
|
||
|
config_key: priority
|
||
|
successors:
|
||
|
-
|
||
|
id: Activity_set_index
|
||
|
condition: Flow_config_is_empty
|
||
|
-
|
||
|
id: Gateway_AND_1
|
||
|
condition: Flow_config_exists
|
||
|
Activity_switch_user:
|
||
|
plugin: eca_switch_account
|
||
|
label: 'Switch user'
|
||
|
configuration:
|
||
|
user_id: '1'
|
||
|
successors:
|
||
|
-
|
||
|
id: Activity_set_bundle_id_to_token
|
||
|
condition: ''
|
||
|
Activity_1ghfkn0:
|
||
|
plugin: eca_switch_account
|
||
|
label: 'Switch user'
|
||
|
configuration:
|
||
|
user_id: '1'
|
||
|
successors:
|
||
|
-
|
||
|
id: Activity_get_list_of_bundles
|
||
|
condition: ''
|