From 900cdbf1bd6412be6b7cded3d2d2e1ce3fea9b8f Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Thu, 27 Jul 2023 14:58:58 +0200 Subject: [PATCH] Finalize custom entities doc --- docs/add_custom_entities.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/add_custom_entities.md b/docs/add_custom_entities.md index 21472255..f6c79fbc 100644 --- a/docs/add_custom_entities.md +++ b/docs/add_custom_entities.md @@ -81,12 +81,18 @@ You can extends the `MonsieurBiz\SyliusSearchPlugin\Search\Request\Search` class ## Define your Search query filter -@TODO +[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 -@TODO +[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 -@TODO +[Declare your translations for your entity](../dist/translations/messages.en.yaml#L5).