Skip to content

Commit bdb8bec

Browse files
authored
Merge pull request #76 from MaxFaessler/master
EDIT: ReadMe suggestions uri
2 parents 2ecb8dc + 700dc8d commit bdb8bec

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,26 @@ In case you need to build the URI to the suggest controller yourself, this is wh
117117
The suggestionContext determines, if a result should be displayed in suggetions. By default, nodes that are hidden are excluded.
118118
In many projects, the search als takes the Neos.Seo metaRobotsNoindex property into account or excludes certain nodeTypes. In order to adjust the suggestion context to your search logic, you can write your custom logic and switch the implementation of the `Flowpack\SearchPlugin\Suggestion\SuggestionContextInterface` via Objects.yaml
119119

120+
### Create URIs for suggestions
121+
122+
To create valid links for suggestions the following package can be used:
123+
124+
* [Punktde.OutOfBandRendering](https://github.com/punktDe/outofbandrendering)
125+
126+
Connect the given example of this package with a custom fusion object:
127+
128+
pathToProtoType = Your.Vendor:Content.NodeLink
129+
130+
And finally add the new property to the plugin settings:
131+
132+
Flowpack:
133+
SearchPlugin:
134+
searchAsYouType:
135+
suggestions:
136+
sourceFields:
137+
- title
138+
- __myProperty
139+
120140
## AJAX search
121141

122142
The plugin comes with a controller that can be reached like this per default, using `GET`:

0 commit comments

Comments
 (0)