Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Karmalakas Veteran

@Karmalakas · Joined 6 years ago · 1191 posts · 34 topics · 219 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Custom field data not being submitted in Admin · 2 years ago

    This worked. I'm pretty sure I saw somewhere in the docs, that in order to save lists, you need to have validate: type: array Or something similar (can't find it any more)... And I tried that, but d

  • Custom field data not being submitted in Admin · 2 years ago

    I removed the solution here, because this saves new entries first time only. It doesn't save the edits. When form is submitted, page.header contains old data 😕

  • Custom field data not being submitted in Admin · 2 years ago

    I guess that makes sense. I didn't consider my field as a container, but now I see it is. I still think this part of docs could be more clear, but I'm not sure how to properly phrase it

  • Custom field data not being submitted in Admin · 2 years ago

    That's so misleading IMO above code makes display and spacer types to be virtual, meaning that they won't exist in real data My understanding is, if you add this 'input@' => false, data will not

  • Custom field data not being submitted in Admin · 2 years ago

    In my plugin blueprint I have 3 fields - 2 of them are list type (plans and features) and the 3rd one is completely custom (table). When the form is rendered on the admin page, I can clearly see the i

  • How to create a custom form field in Admin? · 2 years ago

    @b.da: you add templates directory only outside admin :man_facepalming: you're correct. adding onTwigTemplatePaths to both admin and not, now shows the field output. No need for getFormFieldTypes() o

  • How to create a custom form field in Admin? · 2 years ago

    Oh, I think I found the missing piece... https://learn.getgrav.org/17/forms/blueprints/advanced-features#creating-new-form-field-type I'll try it when I get back home

  • How to create a custom form field in Admin? · 2 years ago

    Here's what I currently have (pretty much everything except this one part) https://github.com/Karmalakas/grav-plugin-plan-compare/tree/init

  • How to create a custom form field in Admin? · 2 years ago

    I did and these page and modular templates are available, but not the one as a form field

  • How to create a custom form field in Admin? · 2 years ago

    So I'm developing a plugin, which would show something like a plan feature comparison table Plan 1 Plan2 Feature 1 v v Feature 2 x v Feature 3 x v I have a list of plans and list of fea