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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Connecting the form plugin with the database plugin

form plugins

Started by DouxDoux 2 years ago · 5 replies · 402 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 Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 54 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1181 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 73 2 months ago