djoamersfoort / grav-theme Goto Github PK
View Code? Open in Web Editor NEWDJO-branded theme for Grav
License: Other
DJO-branded theme for Grav
License: Other
The Forms plugin currently does not work. This needs to be fixed before the new website can go live.
There are two ways to solve this:
The default form can be imported using below line, but it renders a very ugly, unstyled form. This can be fixed with CSS, but maybe we should take control of the rendering ourselves (see solution 2)
{% include "forms/form.html.twig" %}
A better way is to render our own forms. The documentation describes this rather thoroughly, so we should be able to implement that, but it takes more time.
It does give us an advantage as we can then share those forms across pages rather easily, rendering forms in popups then suddenly becomes possible.
Using this method, you can choose a specific name of a form to display. You can even provide the name of a form defined in other pages. As long as all your form names are unique throughout your site, Grav will find and render the correct form!
As long as this issue isn't resolved, users can enable Twig rendering and plop in the form themselves, but I'm not entirely sure that's such a great idea.
The workaround is explained in the docs too, but it's fairly ugly.
---
title: Page with Forms
process:
twig: true
cache_enable: false
---
<!-- Render form -->
{% include "forms/form.html.twig" %}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.