not active plugin i read im my page simplecontact: [] or simplecontact: true
You added to your contact page in the header?
simplecontact: []
If you not see the form you can post your page content? Thanks.
title: Contact
simplecontact: []
Ok i found your problem, it’s simple
The problem is you need to add
simplecontact: []
in the page header and not in the page content, here use the same dash for see the code, posting in other place to see you best
title: "Contact"
simplecontact: []
This is a page content, before dash is a page header.
without space before the last 3 dash, but you can understrand
title: “Contact” simplecontact: []
This is a page content, before dash is a page header.
You need to use this: https://gist.githubusercontent.com/namaless/7c33ceab25db4b14bfa6/raw/05e0e20b1fb94b0b5d3ffc340246db356ac988b6/contact.md
yes but it’s no good
RuntimeException (404)
Template “contact.html.twig” is not defined ().
Open: /var/www/system/src/Grav/Common/Twig.php
// Get Twig template layout
$template = $this->template($page->template() . $ext);
try {
$output = $this->twig->render($template, $twig_vars);
} catch (\Twig_Error_Loader $e) {
throw new \RuntimeException($e->getRawMessage(), 404, $e);
}
Server/Request Data
REDIRECT_STATUS 200
HTTP_HOST localhost
HTTP_USER_AGENT Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
HTTP_ACCEPT_LANGUAGE fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_REFERER http://localhost/
HTTP_CONNECTION keep-alive
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE Apache/2.4.7 (Ubuntu) Server at localhost Port 80
SERVER_SOFTWARE Apache/2.4.7 (Ubuntu)
SERVER_NAME localhost
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT /var/www/
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/
SERVER_ADMIN webmaster@localhost
SCRIPT_FILENAME /var/www/index.php
REMOTE_PORT 37722
REDIRECT_URL /Contact
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /Contact
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1419099901.264
REQUEST_TIME 1419099901
Oh finally
Ok the problem is the filename now
Use
default.md
instead
contact.md
the filename is related to theme layout, in your theme you don’t have
contact.html.twig
and you get this error.
Try to change the filename and check the result
what’s your prefer contact.md order default.md ?
I write before, the filename is related to theme layouts, change to
default.md
and check the result
It’s Ok ! Now with captcha…
Thank-you !
ehehehe no problem sir, in the next update fix the problem with:
simplecontact: true
but with
simplecontact: []
working with old and next version without problem
configuration with captcha ?
Ah ok, then the captcha it’s hidden, all spam bots want compile all fields, I have added one hidden field and check if compile the email it’s a bot then not sended.
You don’t need to configure anything for this
Great! thank you very much