I have a small data visualization portfolio, which I am planning to convert into GRAV cms.
I have some static pages, which I have already converted. However, there are some dynamic/ interactive pages which requires pulling data from database and manipulation using charting libraries like d3.js and/or mapping libraries like openlayers. For these, I would like to have some recommendations:
1. I am planning to create a db.ini file containing database parameters and put it in user/config folder, so that I can include it wherever I require.
Or should I create separate plugin for database connection?
2. I have two separate folders (taxonomy->category: static and interactive). For page specific php, js and css code of interactive pages, I am planning to put them in separate page folders.
interactive->interactive-item1->.php, .js, .css
. I will include them in twig file at my theme folder.
Is this approach ok or do I need to these files in my theme folder?