How can i create text page teamplate (like About Us)
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Re: How can i create text page teamplate (like About Us)
Yes, I have been making changes in my custom theme rather than in the vendor directory.aimeos wrote: ↑03 Aug 2022, 12:24 First of all: Don't change any files in the vendor directory! Never!
You won't be able to update your installation any more to get bugfixes and security fixes.
If you are working with different themes, make sure you have adapted the templates of your custom theme(s).
My shop.php file already has this line in it, but the menu still does not showaimeos wrote: ↑03 Aug 2022, 12:24 @yep: Make sure that your "pages" section in the ./config/shop.php file contains this to display the categories in the CMS pages: https://github.com/aimeos/aimeos/blob/m ... op.php#L61
Re: How can i create text page teamplate (like About Us)
Do you use a custom theme?
If yes, does the page/index.blade.php template from your extension look like this (with "shop::base" replaced by the theme base template)?
https://github.com/aimeos/aimeos-larave ... .blade.php
If yes, does the page/index.blade.php template from your extension look like this (with "shop::base" replaced by the theme base template)?
https://github.com/aimeos/aimeos-larave ... .blade.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: How can i create text page teamplate (like About Us)
Yes, my theme index.blade.php is exactly like that.
I do have two extensions in my packages directory. One is for admin changes and one for the front-end theme. The admin extension doesn't have any theme files in it so it shouldn't affect things, but I mention it just in case it does have an effect.
I do have two extensions in my packages directory. One is for admin changes and one for the front-end theme. The admin extension doesn't have any theme files in it so it shouldn't affect things, but I mention it just in case it does have an effect.
Re: How can i create text page teamplate (like About Us)
Okay, I have found the solution. In my base.blade.php the nav is displayed with:
So I had to change:
to
in page/index.blade.php
I also had to change
to
to make the basket appear in the header
Code: Select all
@yield('aimeos_head_nav');
Code: Select all
@section('aimeos_nav')
Code: Select all
@section('aimeos_head_nav')
I also had to change
Code: Select all
@section('aimeos_basket')
Code: Select all
@section('aimeos_head_basket')
Re: How can i create text page teamplate (like About Us)
As a quick follow-up to this, I would also like to have the search box in the header for CMS pages. I can see that in Aimeos/Shop/Controller/PageController.php that only cms/page, catalog/tree and basket/mini are added to the params array.
How can I decorate or override this to include catalog/search too?
How can I decorate or override this to include catalog/search too?
Re: How can i create text page teamplate (like About Us)
Same way as for the navigation: Add "catalog/search" to your ./config/shop.php and to the Blade template
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: How can i create text page teamplate (like About Us)
Excellent, works perfectly. Thank you!