File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Expand file tree Collapse file tree 6 files changed +9
-9
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 11### Gallery images query field
2- A field that lists the images of a gallery .
2+ A field that lists the children of a given type below the current location .
33
44#### Content type configuration
55The following assumes a "gallery" content type with an "images" query field.
6- The actual images are sub-items of the gallery.
6+ The images are the sub-items of the gallery.
7+
78
89##### Query type
9- AppBundle: Children
10+ ` AppBundle:Children ` (defined in ` ChildrenQueryType.php ` )
1011
1112##### Returned type
1213Image
Original file line number Diff line number Diff line change 11### Nearby places query field
2-
3- A field that lists Place items located close to the current item.
2+ A field that returns items based on their distance relative to the current item.
43
54#### Content type configuration
65The following assumes a "place" content item with a "location" map location
76field definition.
87
98##### Query type
10- "Nearby places " (see [ NearbyPlacesQueryType] ( NearbyPlacesQueryType.php ) .
9+ "RelativeDistance " (see [ NearbyPlacesQueryType] ( NearbyPlacesQueryType.php ) .
1110
1211##### Parameters
1312``` yaml
Original file line number Diff line number Diff line change 44 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
55 * @license For full copyright and license information view LICENSE file distributed with this source code.
66 */
7- namespace App \QueryType ;
7+ namespace AppBundle \QueryType ;
88
99use eZ \Publish \API \Repository \Values \Content \Query ;
1010use eZ \Publish \API \Repository \Values \Content \Query \Criterion ;
1111use eZ \Publish \Core \QueryType \QueryType ;
1212
13- class NearbyPlacesQueryType implements QueryType
13+ class RelativeDistanceQueryType implements QueryType
1414{
1515 public function getQuery (array $ parameters = [])
1616 {
@@ -35,6 +35,6 @@ public function getSupportedParameters()
3535
3636 public static function getName ()
3737 {
38- return 'NearbyPlaces ' ;
38+ return 'RelativeDistance ' ;
3939 }
4040}
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments