schafferer/custom-search-bundle

add customized custom search

1.1.31 2016-11-07 08:43 UTC

README

This bundle adds custom search for articles. It also adds article search result information to product search

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require "schafferer/custom-search-bundle": "master",

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation. Be sure to adjust the version information "~6.0" to the actual version you need.

Step 2: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...

public function registerBundles()
{
    $bundles = array(
        // ...
        new \Schafferer\CustomSearchBundle\SchaffererCustomSearchBundle(),
    );
}

Step 3: Module Extensions
-------------------------

Table or virtual class extensions will be automatically done by the updates in this bundle.
Some module extensions have to be done manually. These modules are:

MTCustomSearch -> MTSchaffererCustomSearch

Step 4 Theme Snippet Chain
--------------------------

You have to add following snippet chain to you theme.

../../../../vendor/schafferer/custom-search-bundle/Resources/views

If you have install the standard theme please check that you add this snippet chain below the standard theme.

Step 5 Search Pages
-------------------

You have to generate the product and article pages manually.
Then you have to add a system page by the portal for these pages with system name

"search" for product search page and "article-search" for the article search page