We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Inter-Module API?

Development and Programming

Mirage's avatar
Mirage
273 posts
16 years ago
Mirage's avatar Mirage

I’ve looked a the source for a few plugins that interact with weblogs. It appears they all write their own SQL to access EE weblogs. While that’s all dandy, it’s obviously subject to break if EllisLab ever changes the table structures.

Would be nice if the weblog module would provide a PHP interface so other classes could query it.

Practical Example:

I’ve written a Retail Locator plugin. It utilizes a zipcode table in the database as well as table that provides the information about a given retailer. My plugin executes the queries against the ‘well-known’ structure of these tables to generate results.

The next step is to turn it into a module and provide a CP interface to add/manage retail locations in that table. This feels a bit redundant as it probably could just use a custom weblog and EE would provide the entire interface for managing the records.

So what’s the recommended practice here? Write my own CP UI for stuff like this or utilize the Weblog stuff but run direct queries on the Weblog? Perhaps a custom weblog would cause performance problems - There are 3800 retail locations listed. As all blog entries are stored in a single ‘wide’ table I’m wondering if that would be expeditious…

Thanks, J

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.