Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Connecting the form plugin with the database plugin

form plugins

Started by DouxDoux 3 years ago · 5 replies · 847 views
3 years ago

I'm trying to find a way to connect my GRAV form to my postgresql database using the database plugin. The goal would be to save the form content to the database. I have all the prerequisites installed, but I don't really understand to go from there.

Did anyone tried it already ? Do yo have any idea which files should be modified ? I'm a a loss.

3 years ago

@douxdoux-1312, I was only showing how a plugin can intercept the 'Submit' of a form and processing the custom action.

Both the Database plugin and SQLite plugin contain part of your needs which you can combine into your own plugin.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Plugins · by complanar, 5 days ago
0 116 5 days ago
Plugins · by Vladimir Novak, 1 month ago
3 581 1 month ago
Plugins · by Mathieu Lecouturier, 1 month ago
3 393 1 month ago
Plugins · by Slebeig, 2 months ago
1 508 2 months ago
Plugins · by Rene, 3 months ago
2 700 3 months ago