Page 1 of 1

How i can just use Search subpart of filter component?

Posted: 05 Sep 2017, 16:31
by Ahmad
i want to put just Search subpart of Filter component in front-end, how i can do it?

Re: How i can just use Search subpart of filter component?

Posted: 05 Sep 2017, 20:39
by aimeos
You can use that setting to configure only the "search" sub-part:
https://aimeos.org/docs/Configuration/C ... d/subparts

Re: How i can just use Search subpart of filter component?

Posted: 09 Sep 2017, 07:53
by Ahmad
aimeos wrote:You can use that setting to configure only the "search" sub-part:
https://aimeos.org/docs/Configuration/C ... d/subparts
i implement new component with name `search` in catalog category and create Standard and Factory classes, but when i use $aibody['catalog/search'] in view i find exception with "Undefined index: catalog/search"
please help me to use this component in view..
i want just search for my ecommerce app header
i want use filter attribute in sidebar of a category page just...

how i can use each filter components subparts seperated?

Posted: 09 Sep 2017, 15:27
by Ahmad
i need to use each of catalog/filter component subparts seperated in several places...
for example i wand use just Search subpart in header of list page, or i want to use attribute filters singly in sidebar of search page, and i want to use tree subpart just in menu for categories...
can i use available catalog/filter component for this needs? or should be create new component for each one?

implement new component but it does not work?

Posted: 09 Sep 2017, 17:30
by Ahmad
i create new component in catalog category in accordance with below url:
https://aimeos.org/docs/Developers/Html ... components

i create a component with name Search in client/html/src/Client/Html/Catalog/Search and create Factory and Standard classes, and after that i put body-default.php and header-default.php in client/html/templates/catalog/search

after that i use <?= $aibody['catalog/search'] ?> views but i found out below error:
Undefined index: catalog/search

What should I do?

Re: How i can just use Search subpart of filter component?

Posted: 10 Sep 2017, 15:07
by aimeos
Someone else already did the same. Please check this topic:
help-f15/separate-tree-search-and-attri ... html#p4505