Search bar to the top

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
sudinmanandhar
Posts: 1
Joined: 22 Nov 2020, 14:00

Search bar to the top

Post by sudinmanandhar » 22 Nov 2020, 14:08

Hi ,

I'm new with Aimeos. I was trying to move the search bar to the top of the menu but could not do it.

I added some text on this file but it does not changes when I refresh the page. Am I editing the correct file ?

project\ext\ai-client-html\client\html\templates\catalog\filter\attribute-body-standard.php

I saw the following code:

Code: Select all

@section('aimeos_nav')
    <?= $aibody['catalog/filter'] ?>
@stop
What does the this array means ? Please help

Code: Select all

"php": "^7.2",
        "aimeos/aimeos-laravel": "~2020.07",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "^6.0",

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

Re: Search bar to the top

Post by aimeos » 23 Nov 2020, 17:32

sudinmanandhar wrote: 22 Nov 2020, 14:08 I'm new with Aimeos. I was trying to move the search bar to the top of the menu but could not do it.
I added some text on this file but it does not changes when I refresh the page. Am I editing the correct file ?
project\ext\ai-client-html\client\html\templates\catalog\filter\attribute-body-standard.php
This file is for the attribute based faceted search filter. For the search bar its:
ext\ai-client-html\client\html\templates\catalog\filter\search-body-standard.php

Furthermore make sure that you disabled caching during development:
https://github.com/aimeos/aimeos-laravel#hints
sudinmanandhar wrote: 22 Nov 2020, 14:08

Code: Select all

@section('aimeos_nav')
    <?= $aibody['catalog/filter'] ?>
@stop
This outputs HTML of the complete catalog/filter component. If you only want to use the search bar, you can add "<?= $aibody['catalog/search'] ?>" instead if you configure "catalog/search" instead or additionally to "catalog/filter":
https://github.com/aimeos/aimeos-larave ... hp#L24-L33

Please read this article to understand how you can adapt it to your needs:
https://aimeos.org/docs/latest/laravel/extend/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply