Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
p Member
@pikim · Joined 3 years ago · 33 posts · 8 topics · 4 reputation
Badges
Recent posts
-
Archive Plus plugin: How to add new translation
· 3 years ago
I would fork the plugin, add the translations to the plugins language.yaml and create a pull request. This way also other users may have a benefit. This https://github.com/Sommerregen/grav-plugin-arch
-
Is it possible to display form results in admin or a frontend page?
· 3 years ago
@pamtbaau I asked, because the guestbook plugin (more or less) used uuids up to know. But I'll throw out the uuid when I continue development. So, it was just out of curiosity. Thank you very much fo
-
Is it possible to display form results in admin or a frontend page?
· 3 years ago
@pamtbaau @pamtbaau: $object->save(); Also works, thank you! Is it possible to assign a name to the object? At the moment a random number is assigned: "5ad2e7c178091a7d81d46a5b26de403b":{"author
-
Is it possible to display form results in admin or a frontend page?
· 3 years ago
@eskah: No one has done this before? I did ;-) Just some minutes ago 🤣 See https://github.com/pikim/grav-plugin-guestbook/commit/19a022e512e3ebb9ac77c911b1531875ba0af833, lines 81-111 and use pro
-
Is it possible to display form results in admin or a frontend page?
· 3 years ago
@eskah As your form has a very different structure compared to mine, the twig doesn't work for you. But, as I said multiple times: you won't be able to generate a valid json file with the default sav
-
Is it possible to display form results in admin or a frontend page?
· 3 years ago
When I place dump($form, $action, $params);die(); in onFormProcessed, strip your page down to: --- title: Test form: name: flex-objects fields: columns: type: columns fields:
-
Is it possible to display form results in admin or a frontend page?
· 3 years ago
@pamtbaau I already used the plugin on my site as it is, but the admin interface doesn't work. So it was just a first draft to see whether I understand the principle of flex-objects as I may have som
-
Is it possible to display form results in admin or a frontend page?
· 3 years ago
@pamtbaau Do you know why in some older plugins the subscription is split into getSubscribedEvents and onPluginsInitialized? Was this the former state of the art?
-
Is it possible to display form results in admin or a frontend page?
· 3 years ago
@eskah @eskah: How can i “subscribe to event”? Search for onFormProcessed in guestbook.php of my repo above. This is the function being called when the form is transmitted. You'll have to put your c
-
Is it possible to display form results in admin or a frontend page?
· 3 years ago
@eskah I started to revise the guestbook plugin to use flex-objects instead of the conventional admin interface. You can find a first version on https://github.com/pikim/grav-plugin-guestbook. It alre