Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Connecting the form plugin with the database plugin

form plugins

Started by DouxDoux 2 years ago · 5 replies · 559 views
2 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.

2 years ago

Yeah I set up the SqLite plugin first, but I'm more used to Postgresql (especially when it comes to remotely access the db which would be required for the project) !

2 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
2 years ago

@douxdoux-1312:
Yeah I set up the SqLite plugin first,

Then say so initially!

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Slebeig, 5 days ago
1 102 5 days ago
Plugins · by Rene, 4 weeks ago
2 303 4 weeks ago
Plugins · by Xavier, 2 months ago
2 224 1 month ago
Plugins · by Luka Prinčič, 7 years ago
3 1412 2 months ago
Plugins · by Sebastian van de Meer, 2 months ago
1 322 2 months ago