I have a standard install with the multi-site addon and I have a module I wrote to deal with navigation. Works great but I dont know how to set a flag for what site its on so it accesses the right table. Basically is there a var that’s set I can access in my module so I know what site the user is administering. Same thing with the plug-in is there a way to tell what site is using the plugin?
You need to code your module to be Multiple Site Manager aware; otherwise it will be the same across sites. I’d recommend looking at the fresh variables module as a starting point as that is one particular module that is MSM aware.
Moved to Modules: Technical Assistance since this is a coding issue for a custom module.
i believe the safe way to set what site your module is editing is to check,
$PREFS->core_ini['site_short_name'];Been nice to get that instead of wasting my time going line by line of that module before I finally just did a var dump and found something to use.
Anyone know if this is a bad idea or if there is a better way?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.