Skip to content

Commit

Permalink
Merge pull request #193 from maximehuran/feature/readme-typo
Browse files Browse the repository at this point in the history
Correct title levels in custom entities doc
  • Loading branch information
maximehuran authored Oct 9, 2023
2 parents c0fe64e + c883596 commit 4b063d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/add_custom_entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,36 +64,36 @@ Also, the `public function getTarget(): string` method must return the value of

## Display your new entity in the search results

## Define your Instant Search request
### Define your Instant Search request

If you want to display your entity in the instant search (`instant_search_enabled` is `true` in configuration).

[Declare your instant search request service](../dist/src/Resources/config/services.yaml#L60).

[Don't forget to bind the parameter for the service](../dist/src/Resources/config/services.yaml#L6).

## Define your Search request
### Define your Search request

[Declare your search request service](../dist/src/Resources/config/services.yaml#L67).

[Don't forget to bind the parameter for the service](../dist/src/Resources/config/services.yaml#L6).

You can extends the `MonsieurBiz\SyliusSearchPlugin\Search\Request\Search` class to manage your aggregations like in [products](../src/Search/Request/ProductRequest/Search.php).

## Define your Search query filter
### Define your Search query filter

[Declare your search query filter for instant search](../dist/src/Resources/config/services.yaml#L77).

[Declare your search query filter for search](../dist/src/Resources/config/services.yaml#L87).

You can extends the `MonsieurBiz\SyliusSearchPlugin\Search\Request\QueryFilter\SearchTermFilter` class to manage your custom behaviour like in [products](../src/Search/Request/QueryFilter/Product/SearchTermFilter.php).

## Add the templates for display
### Add the templates for display

[Declare your templates for instant search](../dist/templates/bundles/MonsieurBizSyliusSearchPlugin/Instant/Taxon/_box.html.twig).

[Declare your templates for search](../dist/templates/bundles/MonsieurBizSyliusSearchPlugin/Search/Taxon/_box.html.twig).

## Add your document translation
### Add your document translation

[Declare your translations for your entity](../dist/translations/messages.en.yaml#L5).

0 comments on commit 4b063d4

Please sign in to comment.