Vadym Regular
@b.da · Joined 4 years ago · 109 posts · 0 topics · 32 reputation
Badges
Recent posts
-
PHP8.6 compat?
· 6 days ago
Which Grav version were you using? Support was announced in v2.2.33 (11/22/2026). I'm still on 8.3/8.4 myself, so... And I don't think you need to apologize for anything 😉
-
can I create a form in a twig template?
· 6 days ago
@Vadym said: Make sure not to isolate the context with only in your {% include %} statement and watch out for page/form caching conflicts. Make sure the variable value is properly passed (including i
-
Stuck with plugin port to Grav v2 - admin page tab missing
· 1 week ago
Hi @Karmalakas, should your plugin add a page template or a tab to all pages? Ok, it looks like this is supposed to be a page, and you’ve already received a working answer. Just tested :)
-
can I create a form in a twig template?
· 1 week ago
@Netzhexe, first, you can define a single form and include it across all pages (directly in your template): {%- set form_name = page.header.form_name|defined('contact-form') -%} {# leave an option to
-
[quark] mobile menu as the modular page menu
· 3 weeks ago
@idna same steps as in previous solution {# templates/partials/navigation.html.twig #} {% import 'macros/macros.html.twig' as macros %} <ul {{ tree ? 'class="tree navigation"' : 'class="navigation
-
How to clone a flex object in twig
· 2 months ago
Here is a working solution that builds the recurring timeline array directly within Twig. I added the until property (the end date for repetitions) and published (status flag) to the object processing
-
How to clone a flex object in twig
· 2 months ago
@complanar, take a look at the Eventlist plugin by @bitstarr, it uses Flex Objects and seems to contain the logic you need. You can also use the toArray() method to get an array copy and manipulate it
-
Home page jumps to modular page on desktop browsers
· 2 months ago
It seems there was a slight mix-up regarding where the autofocus parameter is applied. autofocus is a field-level setting (under form.fields), not a page-level header option. Open the page/module w
-
New Markdown output feature since Grav 2.1.0
· 2 months ago
Great new feature! I was struggling for a while to achieve clean output for llms.txt, but now it is built in. There is also a blog post about the release.
-
Home page jumps to modular page on desktop browsers
· 2 months ago
Gravver, try disabling or removing the autofocus option (autofocus: false) on the contact form page.