Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Form and contact misplaced

Solved by pamtbaau View solution

Started by Sadri Haouet 3 years ago · 2 replies · 902 views
3 years ago

Hello,
I'm very new to Grav and I have so much trouble to make things especially with a form.

I have a modular website (one page right ?) here : https://esa-sen4stat.org/

To the section "system download" i want the button "to the system" to go on another page where people have to fill a form before downloading the system that is elsewhere.

If you click this button you arrive on the page...BUT...the contact form is placed on the top of the page on the banner !
I don't know how to correct this... 😦

Can someone help me ?

Thanks a lot
Sadri

3 years ago Solution

@SadriH, If you take a look at the HTML source of page /system_download you'll notice that no <form> element is being generated. If you further look at theme Mache that is being used, it does not have a template that handles the generation of a form.

Theme Mache only generates a form for a module with template 'contact'.

You will have to create your own template.

👍 1
last edited 08/30/23 by pamtbaau
3 years ago

Hey there,

I found a workaround as a solution. A SO dirty one but it works...

If I had the time I would create my own template for the form but here I just add <br> tag to put down the contact form I add to the page.
See the dirty thing 😦 <br>
image|690x346

At least it works for now, but will have to work on a clean solution in the futur.
Thanks for the answer and your help @pamtbaau

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Anna, 2 days ago
2 53 16 hours ago
Forms & Blueprints · by Anna, 3 days ago
7 82 16 hours ago
Forms & Blueprints · by Anna, 1 week ago
5 186 6 days ago
Forms & Blueprints · by TomW, 1 month ago
3 379 1 month ago
Forms & Blueprints · by Japhy, 2 months ago
2 595 2 months ago