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

Accessing SIte ID within custom module with MSM

Development and Programming

Environ-IT's avatar
Environ-IT
26 posts
13 years ago
Environ-IT's avatar Environ-IT

I’ve a custom module that lists the channels in the site. But I’ve just installed Multiple Site Manager and need to ensure only the channels in the particular site are displayed, not every channel in every site.

Within the MCP file, how do I detect which Site the user is currently administrating, so I can filter the list accordingly?

Thanks

Andrew

       
Bhashkar Yadav's avatar
Bhashkar Yadav
727 posts
13 years ago
Bhashkar Yadav's avatar Bhashkar Yadav
$this->EE =& get_instance();
$site_id = $this->EE->config->item('site_id');
       

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.