Placing subparts somewhere else
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Placing subparts somewhere else
Hi Aimeos
At this moment we're trying to rearrange the layout.
For this, we would like to have the search bar next to some buttons (my cart, login) and the navigation under it with some buttons next to it.
Is there a way to rearrange this? Or do we have to put the html code for the buttons in the search layout?
At this moment we're trying to rearrange the layout.
For this, we would like to have the search bar next to some buttons (my cart, login) and the navigation under it with some buttons next to it.
Is there a way to rearrange this? Or do we have to put the html code for the buttons in the search layout?
Re: Placing subparts somewhere else
Looks like it would be the easiest to add your buttons to the templates of the filter component if you don't need Laravel specific code there. If you need to rearrange the subparts of the component itself, you can do it by configuration.
It would be also possible to add the component twice and hide the parts that shouldn't be shown via CSS. You can also do a lot with CSS floating.
It would be also possible to add the component twice and hide the parts that shouldn't be shown via CSS. You can also do a lot with CSS floating.
Re: Placing subparts somewhere else
Ok
So no other way to retrieve a part of the aimeos_nav, put it in another section and yield it?
We have a button displayed depending if the user is logged in or not. These buttons should come next to the search bar and are using the Laravel "url" principle
So no other way to retrieve a part of the aimeos_nav, put it in another section and yield it?
We have a button displayed depending if the user is logged in or not. These buttons should come next to the search bar and are using the Laravel "url" principle
Re: Placing subparts somewhere else
No, subparts are not viable on their own but you can put the "aimeos_nav" component twice in your template. The only downside in Laravel compared to e.g. TYPO3 is that you can't configure both instances independently, so the HTML code for the tree and attribute filter would be added twice as well even if you don't see it.Yvler wrote:Ok
So no other way to retrieve a part of the aimeos_nav, put it in another section and yield it?
Depending on the layout, I would try to float the search bar next to your buttons and display the categories in a normal way so they will be placed below. It's quite interesting how much you can do with CSS without touching the HTML codeYvler wrote:We have a button displayed depending if the user is logged in or not. These buttons should come next to the search bar and are using the Laravel "url" principle