How i can just use Search subpart of filter component?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Ahmad
Posts: 72
Joined: 05 Jul 2017, 15:19

How i can just use Search subpart of filter component?

Post by Ahmad » 05 Sep 2017, 16:31

i want to put just Search subpart of Filter component in front-end, how i can do it?

User avatar
aimeos
Administrator
Posts: 7820
Joined: 01 Jan 1970, 00:00

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

Post by aimeos » 05 Sep 2017, 20:39

You can use that setting to configure only the "search" sub-part:
https://aimeos.org/docs/Configuration/C ... d/subparts
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Ahmad
Posts: 72
Joined: 05 Jul 2017, 15:19

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

Post by Ahmad » 09 Sep 2017, 07:53

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...

Ahmad
Posts: 72
Joined: 05 Jul 2017, 15:19

how i can use each filter components subparts seperated?

Post by Ahmad » 09 Sep 2017, 15:27

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?

Ahmad
Posts: 72
Joined: 05 Jul 2017, 15:19

implement new component but it does not work?

Post by Ahmad » 09 Sep 2017, 17:30

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?

User avatar
aimeos
Administrator
Posts: 7820
Joined: 01 Jan 1970, 00:00

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

Post by aimeos » 10 Sep 2017, 15:07

Someone else already did the same. Please check this topic:
help-f15/separate-tree-search-and-attri ... html#p4505
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply