Is there a way to make Glass Mapper to filter out items which have "Hide versions" standard field checked?
-
What glass mapper version are you using? There is an issue on glass mapper 5 that displays items even if the version count is 0.– Cristi VulturarJul 2, 2021 at 13:06
1 Answer
You can try with
[SitecoreType(TemplateId={GUID})]
public class YourCustomModelClass : GlassBase
{
[SitecoreField("__Hide version")]
public virtual bool HideVersion{ get; set; }
}
by putting it into the required class or in the parent class you have already standard field properties are available.