What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello, I have problem in Yves, i want to show search results in my custom page I override search eng

USLUHK9SQ
USLUHK9SQ Posts: 92 🧑🏻‍🚀 - Cadet

Hello,
I have problem in Yves, i want to show search results in my custom page
I override search engine in Pyz\Client\Catalog\CatalogDependencyProvider.php and results comes from here,

protected function addSearchClient(Container $container)
    {
        $container[static::CLIENT_SEARCH] = function (Container $container) {
            return $container->getLocator()->customSearchModule()->client();
        };

        return $container;
    }

now i want showing results in my custom search result page, where should I add it,
I have my custom module in
src/Pyz/Client/CustomSearchModule
and
src/Pyz/Yves/CustomSearchModule
but i can't see no correlation to showing results in my custom page,
and data goes from:
src/Pyz/Yves/CatalogPage/Theme/default/templates/page-layout-catalog/page-layout-catalog.twig
and for example i want show results from:
src/Pyz/Yves/CustomSearchModule/Theme/default/templates/my-view.twig
in brief: i must create view to showing results from search

Comments

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 🧑🏻‍🚀 - Cadet

    I don't see a reason to override search client yet

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 🧑🏻‍🚀 - Cadet

    but yes, your controller should call this custom client

  • USLUHK9SQ
    USLUHK9SQ Posts: 92 🧑🏻‍🚀 - Cadet

    I don't know which file to edit, to override view