Plugin
Plugins can be used to extend fylr with custom data types, custom API endpoints, custom frontend snippets and more...
Replacement
Description
Format of manifest.yml
plugin:
name: plugin_name
displayname:
en-US: "Name of the Plugin"
l10n: l10n/loca.csv
webfrontend:
url: plugin_name.js
css: plugin_name.css
base_url_prefix: "webfrontend"
extensions:
dump/info:
exec:
service: "node"
commands:
- prog: "node"
stdin:
url: "%_input.url%"
stdout:
method: "POST" # method to write the data back, FYLR expects "POST" (also the default)
url: "%_output.url%"
args:
- type: "value"
value: "dump_info.js"
- type: "value"
value: "%info.json%"
callbacks:
transition_db_pre_save:
set_comment:
exec:
service: "node"
commands:
- prog: "node"
stdin:
url: "%_input.url%"
stdout:
url: "%_output.url%"
args:
- type: "value"
value: "set_comment.js"
db_pre_save:
steps:
- name: "set comment for bilder"
callback: set_comment
filter:
type: objecttype
objecttypes:
- bilder
callbacks:
set_comment:
exec:
service: "node"
commands:
- prog: "node"
stdin:
url: "%_input.url%"
stdout:
url: "%_output.url%"
args:
- type: "value"
value: "set_comment.js"
- type: "value"
value: "%info.json%"
export:
create_pptx:
exec:
service: "python"
commands:
- prog: "python"
stdout:
type: body
args:
- type: "value"
value: "pptx_test.py"
- type: "value"
value: "%info.json%"
# additional base config, in this example adding a plugin user
base_config:
- name: user
parameters:
api_user:
type: user
Extensions
Callbacks
db_pre_save, transition_db_pre_save/<transition-type>, webhook_db_pre_save
export/<procedure>
Payload in %info.json%
Property
Description
Return payload
Property
Description
Property
Description
export_transport
Payload in %info.json%
Property
Description
Return payload
Property
Description
Last updated