CMS - 10.10.3Commerce - 11.2.4
We have multiple sites and so have multiple Start pages in CMS.
We need to show pages and blocks for respective sites when creating a block or page from CMS.
So please guide me that how we can filter the Blocks and Pages for different sites.
As I know, there is no way for the same codebase.
If you really want to limit those - use separate Web projects for each site with their own blocks and pages.
Maybe have a look at FeatureSwitch by Valdis.
Could you create VirtualRoles that calculate what site you are on, then apply access rights to Blocks based on those virtual roles?
The solution is to use virtual roles, as Mark pointed out. For pages, you might not even have to do that. Just set what page types that are possible to create under the different page types.