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

how to MSM-ify a module

Development and Programming

elwed's avatar
elwed
151 posts
17 years ago
elwed's avatar elwed

Can somebody please post a short summary of how to make a module MSM-aware?

       
Derek Jones's avatar
Derek Jones
7,561 posts
17 years ago
Derek Jones's avatar Derek Jones

The short answer is that your database tables will want to have a site_id key to keep data separate and make querying for the correct data simple based on the currently site ($PREFS->ini(‘site_id’), or the $TMPL->site_ids array which will automatically be set for you when a site= parameter is used in your module’s tags. You could also of course use a table to control member group access to your module in specific sites if you wish, again, with site_id being the key.

       
elwed's avatar
elwed
151 posts
17 years ago
elwed's avatar elwed

Thanks, Derek. I’ll compare notes with other modules to see how far I’ll get 😊

       
Derek Jones's avatar
Derek Jones
7,561 posts
17 years ago
Derek Jones's avatar Derek Jones

No problem, let us know if you have specific questions about the implementation, Markus.

       

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.