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

Form - find rendering twig, debug enhancements

Started by Richard Hainsworth 9 years ago · 2 replies · 802 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 Sebadamus, 7 days ago
5 148 14 hours ago
Themes & Styling · by martynfoster735, 1 week ago
1 192 1 week ago
Themes & Styling · by Justin Young, 3 weeks ago
1 241 3 weeks ago
Themes & Styling · by Slebeig, 1 month ago
4 376 1 month ago
Themes & Styling · by Pedro M, 3 months ago
4 745 3 months ago