Hi Robert,
This is covered in the documentation here, but for convenience, this is how it can be achieved:
public override IEnumerable<IVariantContextScope> ContextScopes
{
get
{
return new[]
{
new AttachmentVariantContextScope().OnSite("DancingGoat")
.Type("DancingGoat.Article")
.Path("/Articles", PathTypeEnum.Children),
new AttachmentVariantContextScope().OnSite("CorporateSite")
.Type("CMS.News")
.Path("/News", PathTypeEnum.Children)
};
}
}
Best regards, Michael