Multisite setup - Restrict block type to specific site

A.D
A.D
Vote:
 

Howdy,

Can you control a block's availability based on site context?

So I can have site1 and site2, and then a family of blocks that should only be available when editing within site1.

I don't think Access attribute with roles works because some users may have access to both sites.

What I'm thinking of is something like a base ContentType attribute for site1 blocks that sets AvailableInEditMode = false if SiteDefinition.Current.Name = "site1".

Thanks,

#150743
Jun 29, 2016 5:05
A.D
Vote:
 

Awesome, thanks Johan,

That looks very interesting.

#151320
Jul 15, 2016 2:59
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.