2015-09-13 18:32:44 +00:00
|
|
|
enabled: true
|
2015-10-15 16:04:02 +00:00
|
|
|
|
|
|
|
enable_on_routes:
|
|
|
|
- '/blog'
|
|
|
|
|
|
|
|
disable_on_routes:
|
|
|
|
- /blog/blog-post-to-ignore
|
|
|
|
- /ignore-this-route
|
|
|
|
#- '/blog/daring-fireball-link'
|
|
|
|
|
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: 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: title
|
|
|
|
type: hidden
|
|
|
|
evaluateDefault: grav.page.header.title
|
|
|
|
|
|
|
|
- name: lang
|
|
|
|
type: hidden
|
|
|
|
evaluateDefault: grav.language.getLanguage
|
|
|
|
|
|
|
|
- name: path
|
|
|
|
type: hidden
|
|
|
|
evaluateDefault: grav.uri.path
|
|
|
|
|
2015-12-12 13:28:10 +00:00
|
|
|
# - name: g-recaptcha-response
|
|
|
|
# label: Captcha
|
|
|
|
# type: captcha
|
|
|
|
# recatpcha_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:
|
2015-10-16 15:17:44 +00:00
|
|
|
- email:
|
2016-03-24 08:03:25 +00:00
|
|
|
subject: PLUGIN_COMMENTS.EMAIL_NEW_COMMENT_SUBJECT
|
2015-10-16 15:17:44 +00:00
|
|
|
body: "{% include 'forms/data.html.twig' %}"
|
2015-12-12 13:28:10 +00:00
|
|
|
# - captcha:
|
|
|
|
# recatpcha_secret: ej32oiej23oiej32oijeoi32jeio32je
|
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
|
|
|
|
|
|
|
|