WordPress CRUD Plugin
I’ve finally decided to create a CRUD (Create Read Update Delete) plugin for WordPress. In my experience, it seems that the WordPress plugin architecture is very limited in scope. In fact, I’m so much more impressed by Drupal for it’s expandability, it’s permissions system and it’s menu system. However, WordPress has something that Drupal doesn’t have: an easy to use interface for creating pages and posts. Usability is what won me over to WordPress (For the time being anyway). So I’m going to spend my time making it do what I want it to do.
To start a CRUD system, I have a few requirements.
1. It must list items in the same format as the default Posts, Pages and Links interface. That means it’ll use the same skin and it’ll show the Edit and Delete buttons on RollOver
2. It must use separate pages for List and Edit screens. What I didn’t want is a single file plugin that has 12,000 lines of code.
3. It must be installable and uninstallable, plus it has to support upgrades.
I’ve already started, and figured out a way to use WordPresses menu system as a Router for page requests. This did require a hack to the menu-header.php file, but the hack was only 2 lines of code (1 statement, split onto 2 lines for readability). More to come…
3 Responses to “WordPress CRUD Plugin”
Leave a Reply

Leo Germani on June 5th, 2009
hi there,
Are you still doing this..
Ive just finished the first version of a CRUD plugin.. I dont know if it is the same thing as yours..
What I wanted was a plugin that allowed me to create as many CRUD interfaces as I needed.
It works like this.. I activate the CRUD plugin, and then create another plugin and just call the CRUD object passing as paramater a Model of the database I want.
It then creates the table and the admin interface for me…
Another thing is that I can extend its method to make adjustments for each specific CRUD..
And it also has hooks and filters.. so I can customize even more one CRUD from another….
If you want to talk about it let me know….
cheers
John Joseph Bachir on July 23rd, 2009
sounds like a plugin that could come in handy for a lot of little projects — would love to here your progress on this and contribute back
jorge rego on April 29th, 2010
Indeed sounds… although we can’t really “ear” anything! If a version of either (Dan’s or Leo’s) could be shared that whould be great.