Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Dynamically add page url to contact form
· 10 years ago
HTTP headers include that data as a referer (yes the spec is misspelled), along with with some other fun data. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer In PHP, you can access
-
Dynamically add page url to contact form
· 10 years ago
Thanks it seems to work. Just two more questions: The hidden field is visible on the "thank you page" after the form is sent. Any chance to prevent this? What does evaluate: true do?
-
Dynamically add page url to contact form
· 10 years ago
You can use the hidden field and evaluate the default value: - name: page type: hidden default: grav.page.route evaluate: true
-
Dynamically add page url to contact form
· 10 years ago
Hey guys, I have set up a nice website which includes the same frontend form on each page. Is there a possibility to get the page (page url, title …) where the contact form is sent from? I thought of
-
Save a boolean instead of a String in Admin hidden field
· 10 years ago
I actually did it this way for those who are interested: header.my_value: type: hidden label: Label Name default: 0 validate: type: bool
-
Save a boolean instead of a String in Admin hidden field
· 10 years ago
Good tip, thanks :)
-
Save a boolean instead of a String in Admin hidden field
· 10 years ago
When in doubt, look at the blueprints for Grav itself. The system/blueprints/config/system.yaml is particularly illuminating: home.hide_in_urls: type: toggle
-
Save a boolean instead of a String in Admin hidden field
· 10 years ago
Hi, I'm looking to add for a modular blueprint cache_enable:false for each modular saved from the admin panel. I'm using: header.cache_enable: type: hidden default: false But it doesn't save it in
-
Does featherlight plugin work as explained in the plugin readme?
· 10 years ago
Featherlight is being used this way in the shop skeleton. A good way to test and see how things are done is to install the shop skeleton package on your local Dev environment. https://github.com/getg
-
Does featherlight plugin work as explained in the plugin readme?
· 10 years ago
In particular, it says this: To implement a lightbox using Featherlight in Grav, you must output the proper HTML output. Luckily Grav already takes care of this for you if you are using Grav media fi