1
Development / Develop new plugin with db - best practice?
« on: December 07, 2009, 06:25:08 am »
Hi all,
I want to develop a new plugin with DB-Storage, in detail the plugin should store quotes and display one of them in a random way as a 'quote-of-the-day' in the dashboard (I mean the overview-page).
I think I need to:
The database-structure is simple, because its one table, but how is it created during installation? Is there an upgrade-mechanism, if I will release a plugin-upgrade in future, which I should now keep in mind?
How about modifying the dashbord? Is this the right way or do I have to implement or extend some hooks? Does anybody has a working mini-example *WITH* DB_Access?
Thanks a lot and best regards,
Thomas
I want to develop a new plugin with DB-Storage, in detail the plugin should store quotes and display one of them in a random way as a 'quote-of-the-day' in the dashboard (I mean the overview-page).
I think I need to:
- create the plugin-structure
- create the database-layout
- modify the dashboard, or?
The database-structure is simple, because its one table, but how is it created during installation? Is there an upgrade-mechanism, if I will release a plugin-upgrade in future, which I should now keep in mind?
How about modifying the dashbord? Is this the right way or do I have to implement or extend some hooks? Does anybody has a working mini-example *WITH* DB_Access?
Thanks a lot and best regards,
Thomas