How can i create text page teamplate (like About Us)

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!
yeh
Posts: 39
Joined: 27 Jun 2022, 13:26

Re: How can i create text page teamplate (like About Us)

Post by yeh » 03 Aug 2022, 09:42

My src/views/catalog/detail.blade.php from package aimeos-laravel is:

Code: Select all

@extends('moderation-theme::base')

@section('aimeos_header')
    <?= $aiheader['locale/select'] ?? '' ?>
    <?= $aiheader['basket/mini'] ?? '' ?>
    <?= $aiheader['catalog/tree'] ?? '' ?>
    <?= $aiheader['catalog/search'] ?? '' ?>
    <?= $aiheader['catalog/stage'] ?? '' ?>
    <?= $aiheader['catalog/detail'] ?? '' ?>
    <?= $aiheader['catalog/session'] ?? '' ?>
@stop

@section('aimeos_head_basket')
    <?= $aibody['basket/mini'] ?? '' ?>
@stop

@section('aimeos_head_nav')
    <?= $aibody['catalog/tree'] ?? '' ?>
@stop

@section('aimeos_head_locale')
    <?= $aibody['locale/select'] ?? '' ?>
@stop

@section('aimeos_head_search')
    <?= $aibody['catalog/search'] ?? '' ?>
@stop

@section('aimeos_stage')
    <?= $aibody['catalog/stage'] ?? '' ?>
@stop

@section('aimeos_body')
    <?= $aibody['catalog/detail'] ?? '' ?>
@stop

@section('aimeos_aside')
    <?= $aibody['catalog/session'] ?? '' ?>
@stop

santfather
Posts: 27
Joined: 02 Feb 2022, 10:43

Re: How can i create text page teamplate (like About Us)

Post by santfather » 03 Aug 2022, 09:51

doesn't work at all or only on a web server?
we had a problem that everything worked locally, but when transferring to the aws server, it was not displayed

yeh
Posts: 39
Joined: 27 Jun 2022, 13:26

Re: How can i create text page teamplate (like About Us)

Post by yeh » 03 Aug 2022, 09:58

It doesn't work anywhere unfortunately.

santfather
Posts: 27
Joined: 02 Feb 2022, 10:43

Re: How can i create text page teamplate (like About Us)

Post by santfather » 03 Aug 2022, 10:01

try adding to PageController.php(aimeos-laravel\src\Aimeos\Shop\Controller\PageController.php) this line
"foreach( app( 'config' )->get( 'shop.page.cms', ['cms/page', 'catalog/tree', 'catalog/search'] ) as $name )"
Screenshot_115.png
Screenshot_115.png (52.91 KiB) Viewed 1744 times

yeh
Posts: 39
Joined: 27 Jun 2022, 13:26

Re: How can i create text page teamplate (like About Us)

Post by yeh » 03 Aug 2022, 10:10

Thanks, but even after this change, the menu still does not show.

santfather
Posts: 27
Joined: 02 Feb 2022, 10:43

Re: How can i create text page teamplate (like About Us)

Post by santfather » 03 Aug 2022, 10:14

last. check pls \aimeos-laravel\src\views\page\index.blade.php @section('aimeos_nav')
<?= $aibody['catalog/tree'] ?? '' ?> it must be there
and of course, clear the entire cache wherever possible :)

yeh
Posts: 39
Joined: 27 Jun 2022, 13:26

Re: How can i create text page teamplate (like About Us)

Post by yeh » 03 Aug 2022, 10:24

Yes, that is already in there and all caches etc have been cleared but still no menu :(

santfather
Posts: 27
Joined: 02 Feb 2022, 10:43

Re: How can i create text page teamplate (like About Us)

Post by santfather » 03 Aug 2022, 10:29

src/Aimeos/Shop/Controller/PageController.php
src/views/page/index.blade.php
our problem was solved by editing these two files.
I have answered everything I knew on this issue

yeh
Posts: 39
Joined: 27 Jun 2022, 13:26

Re: How can i create text page teamplate (like About Us)

Post by yeh » 03 Aug 2022, 10:37

It seems my files already have these changes but the menu is still absent. Thanks for providing your help though.

Maybe Aimeos can help further.

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

Re: How can i create text page teamplate (like About Us)

Post by aimeos » 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).

@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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply