Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Forms & Blueprints

Form and contact misplaced

Solved by pamtbaau View solution

Started by Sadri Haouet 3 years ago · 2 replies · 504 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 Ton Haarmans, 5 years ago
13 1138 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 61 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 135 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 110 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 129 7 months ago