-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
73 lines (63 loc) · 2.8 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
key: assetcolorextractor
id: assetcolorextractor
name: 'Asset Color Extractor'
description: 'Extract colors from image assets.'
author_name: 'Dan Wolfgang, Endevver'
author_link: http://endevver.com
plugin_link: https://github.com/endevver/mt-plugin-asset-color-extractor
version: 1.1.2
object_types:
asset.image:
extracted_colors: text meta
applications:
data_api:
resources:
asset:
- version: 2
fields: $AssetColorExtractor::AssetColorExtractor::Plugin::data_api_fields
task_workers:
asset_color_extractor:
label: Asset Color Extractor
class: AssetColorExtractor::Worker::Extract
blog_config_template: config.mtml
settings:
number_of_colors:
scope: blog
default: 5
callbacks:
post_init: $AssetColorExtractor::AssetColorExtractor::Plugin::add_asset_method
cms_upload_file.image: $AssetColorExtractor::AssetColorExtractor::Plugin::upload_file_callback
api_upload_file.image: $AssetColorExtractor::AssetColorExtractor::Plugin::upload_file_callback
MT::Asset::Image::post_insert: $AssetColorExtractor::AssetColorExtractor::Plugin::post_insert_callback
template_param.edit_asset:
handler: AssetColorExtractor::CMS::add_asset_meta
# Seems to need a higher priority when interacting with some plugins...
# priority: 4
page_actions:
asset:
extract_color:
label: 'Extract Color'
order: 500
code: $AssetColorExtractor::AssetColorExtractor::CMS::page_action_extract_color
condition: $AssetColorExtractor::AssetColorExtractor::CMS::page_action_condition
continue_prompt: "Are you sure you want to extract colors from the selected asset(s)?\n(Colors will not be extracted immediately; workers will be added to the Publish Queue to extract colors.)"
list_actions:
asset:
extract_color:
label: 'Extract Color'
order: 500
code: $AssetColorExtractor::AssetColorExtractor::CMS::list_action_extract_color
continue_prompt: "Are you sure you want to extract colors from the selected asset(s)?\n(Colors will not be extracted immediately; workers will be added to the Publish Queue to extract colors.)"
list_properties:
asset:
extracted_colors:
label: 'Extracted Colors'
col: extracted_colors
order: 600
display: optional
html: $AssetColorExtractor::AssetColorExtractor::CMS::colors_column_list_property
tags:
block:
AssetExtractedColors: $AssetColorExtractor::AssetColorExtractor::Tags::block_extracted_colors
function:
AssetExtractedColor: $AssetColorExtractor::AssetColorExtractor::Tags::function_extracted_color