I am trying retrieve a list of Normal and Multimedia Schemas from a given Publication context. So far I have:
RepositoryItemsFilter filter = new RepositoryItemsFilter(engine.GetSession());
filter.ItemTypes = new ItemType[] { ItemType.Schema };
filter.Recursive = true;
Publication pub = this.GetPublication();
foreach (Schema schema in pub.GetItems(filter))
{
//need to further refine to only use Normal and MM schemas
}
This is usually not a problem when we are working with a Component because we just do ComponentType.Normal
or ComponentType.Multimedia
. But how do we do this if we only have a Schema?