Details
-
Bug
-
Resolution: Duplicate
-
High
-
None
-
None
-
None
Description
Note that when making searches for front end use you should use the `$languageFilter` parameter of the `findLocations` and `findContent` functions and `Criterion\Visibility::VISIBLE` to filter the results accordingly. If not you may get results you do not wish.
Example:
$query = new LocationQuery([
'filter' => new Criterion\LogicalAnd([
new Criterion\Visibility(Criterion\Visibility::VISIBLE),
new Criterion\ParentLocationId($parentLocation->id),
],
'sortClauses' => $parentLocation->getSortClauses(),
]);
$searchService->findLocations($query,
['languages' => $configResolver->getParameter('languages')]);
Attachments
Issue Links
- duplicates
-
EZP-26856 Update Browsing, finding, viewing regarding common front end queries
- Closed