If only the "PageLanguages" property was matched, it only shows the pages of current language.
But I want to retrieve EN pages if there's no language branch in current language.
I tried this but it doesn't work.
languageFilter = languageFilter.Or(x => x.PageLanguages.Match(languageId) & x.LanguageID.MatchCaseInsensitive(languageId));
languageFilter = languageFilter.Or(x => !x.PageLanguages.Match(languageId) & x.LanguageID.MatchCaseInsensitive("en"));
I need to filter a page type by the current language and if it is not available then filter by 'en'.
I tried this, but it returns both current language and 'en' instances.
I need 'en' content only if current langage instance is not available.
Can I define such a query filter ?