pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3134 posts · 12 topics · 1012 reputation
Badges
Recent posts
-
Dark mode with JS script and → images / pictures
· 4 years ago
@medi, Maybe I'm a bit confused by your question... Do you want to know (loosely rephrased) "How to change the src attribute using JS" or "How to generate a <picture> tag in Markdown", or do yo
-
Dark mode with JS script and → images / pictures
· 4 years ago
@medi, If you have a js script that runs when switching between dark/light theme, why not have js also search for <picture> and change its src attribute?
-
Inject value of form field into javascript of thankyou page
· 4 years ago
@sib, When I use your latest Twig snippet, it works fine... If you provide a step-by-step description to reproduce your situation, we might find something.
-
How can I set a canonical link to an external URL?
· 4 years ago
@amihoro, It appears this issue has already been raised before, but maybe too easily marked as being solved... Currently, when using routes.canonical together with {{ page.url(true, true) }} as used i
-
Automating website error checks
· 4 years ago
@hughbris, Not aware of any tool, but some approaches come to mind... Cronjob scanning Apache/Grav log files: Running a cronjob on the server that: checks apache's log and Gravs log file and sends
-
How to add custom Tab in page editor in Admin Panel?
· 4 years ago
@kairari, You'll need to create/update the blueprint for the page type at hand. In the blueprint, you can add a tab with your own field to add the buttons. Take a look at the blueprint for the "Blog I
-
Inject value of form field into javascript of thankyou page
· 4 years ago
@Karmalakas, Well I didn't know either, but I figured that if template formdata.html.twig can show the input data in the thankyou page, then any template can... Following the template, led me to line
-
Inject value of form field into javascript of thankyou page
· 4 years ago
@sib, Ok that means the values of the form are not being shown in the thankyou page. In that case you'll have to read the form data yourself: Steps: Create a copy of default.html.twig and rename it t
-
Inject value of form field into javascript of thankyou page
· 4 years ago
@sib, What template are you using for the thankyou page? To recap: You want to catch the value from the email field <input name="data[email]" value="" type="email" class="form-input " required
-
Inject value of form field into javascript of thankyou page
· 4 years ago
@sib, Based on the given information, I can only say "It depends" and give some generic suggestions. "It depends" on information like: Are you submitting the form synchronous or asynchronous? When do