0

Is there a way to make Glass Mapper to filter out items which have "Hide versions" standard field checked?

1
  • 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. Jul 2, 2021 at 13:06

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.