Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Form - find rendering twig, debug enhancements

Started by Richard Hainsworth 9 years ago · 2 replies · 1037 views
9 years ago

I'm trying to create a form. I am finding it difficult to determine which form.twig.html file is being used to render my form and where the css is coming from to render it.
I have a simple form with two text inputs, two buttons, and a date input. But depending on where in the file structure I put it, and what I name the file, I get different results.
I have not managed yet to get the date input to generate a date as described in the documentation.

Would it be possible to include some form of debug information, such as a debug log, in which the twig file that is used to render a page is listed?

Would it be possible to add something to the form tutorial about the css that is used to render a form?

9 years ago

To be honest when i'm debugging Twig templates, i usually just put in some text that will render in HTML to help ensure i'm viewing the correct one. Just a simple AAA or BBB in at the top of the content area of the template is usually enough.

9 years ago

Yes but which of the various form files, there seem to be three or four
sets in my setup (I am working off a Big Picture skeleton, but I have
considerably changed it).

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by FrViPofm, 4 weeks ago
4 474 2 weeks ago
Themes & Styling · by johan thomas, 5 years ago
1 800 3 weeks ago
Themes & Styling · by stuart young, 2 months ago
3 660 2 months ago
Themes & Styling · by Sebadamus, 3 months ago
5 680 2 months ago
Themes & Styling · by martynfoster735, 3 months ago
1 642 3 months ago