AI OnAI Off
Hi Eric,
Daniel mention this is a bug in earlier versions of Find but it is fixed in Find 12 (Link). So try to update your find version or try below solution if the upgrade is not an option.
Please try this-
private bool IsPublished(IVersionable content) { if (content == null) return true; if (content.StopPublish > DateTime.UtcNow) return content.Status.HasFlag(VersionStatus.Published); return false; }
Hi Eric, your sample code only uses the filterbuilder if there are categories. If there are no categories then no filtering is done.
Episerver v11.12.0 hosted at Episerver Azure
I am using FIND to list specific blocks that I pull from a folder. However, the search included blocks that are marked Expired. I am using the extensions CurrentlyPublished().FilterForVisitor().ExcludeDeleted(). I have several other parameters I'm adding to the search. Is it possible I'm loading adding them in the wrong order?