grav-plugin-comments/comments.yaml

86 lines
2.1 KiB
YAML
Raw Normal View History

2015-09-13 18:32:44 +00:00
enabled: true
pingbacks: true
commenting: true
akismet_enabled: true
warning_message: ""
2017-10-23 11:37:52 +00:00
built_in_css: true
ajax_callback: /nested-comments
enable_on_routes:
- '/blog'
disable_on_routes:
- /blog/blog-post-to-ignore
- /ignore-this-route
2015-10-13 21:39:13 +00:00
form:
name: comments
fields:
- name: name
2016-03-24 08:03:25 +00:00
label: PLUGIN_COMMENTS.NAME_LABEL
placeholder: PLUGIN_COMMENTS.NAME_PLACEHOLDER
2015-10-13 21:39:13 +00:00
autocomplete: on
type: text
validate:
required: true
- name: email
2016-03-24 08:03:25 +00:00
label: PLUGIN_COMMENTS.EMAIL_LABEL
placeholder: PLUGIN_COMMENTS.EMAIL_PLACEHOLDER
2015-10-13 21:39:13 +00:00
type: email
validate:
required: true
- name: site
label: PLUGIN_COMMENTS.SITE_LABEL
placeholder:
type: text
validate:
required: false
2015-10-13 21:39:13 +00:00
- name: text
2016-03-24 08:03:25 +00:00
label: PLUGIN_COMMENTS.MESSAGE_LABEL
placeholder: PLUGIN_COMMENTS.MESSAGE_PLACEHOLDER
2015-10-13 21:39:13 +00:00
type: textarea
validate:
required: true
- name: date
type: hidden
process:
fillWithCurrentDateTime: true
- name: lang
type: hidden
evaluateDefault: grav.language.getLanguage
- name: path
type: hidden
evaluateDefault: grav.uri.path
- name: blockme
type: honeypot
# - name: g-recaptcha-response
# label: Captcha
# type: captcha
2017-04-14 14:19:33 +00:00
# recaptcha_site_key: e32iojeoi32jeoi32jeoij32oiej32oiej3
# recaptcha_not_validated: 'Captcha not valid!'
# validate:
# required: true
# process:
# ignore: true
2015-10-13 21:39:13 +00:00
buttons:
- type: submit
2016-03-24 08:03:25 +00:00
value: PLUGIN_COMMENTS.SUBMIT_COMMENT_BUTTON_TEXT
2015-10-13 21:39:13 +00:00
process:
2017-02-26 21:05:26 +00:00
# - captcha:
2017-04-14 14:19:33 +00:00
# recaptcha_secret: ej32oiej23oiej32oijeoi32jeio32je
- email:
2016-03-24 08:03:25 +00:00
subject: PLUGIN_COMMENTS.EMAIL_NEW_COMMENT_SUBJECT
body: "{% include 'forms/data.html.twig' %}"
2015-10-13 21:39:13 +00:00
- addComment:
2016-03-24 08:03:25 +00:00
- message: PLUGIN_COMMENTS.THANK_YOU_MESSAGE
2016-06-30 09:41:12 +00:00
- reset: true
2015-10-13 21:39:13 +00:00