How to make new navigation links in aimeos in admin pannel

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!
awaidqureshi
Posts: 86
Joined: 12 Jan 2019, 15:17

How to make new navigation links in aimeos in admin pannel

Post by awaidqureshi » 25 Jul 2019, 06:29

I want to make new navigation links , views and controller and use it in the aimeos admin pannel
Please give step by step guide so that i can do it easily


Thanks

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

Re: How to make new navigation links in aimeos in admin pannel

Post by aimeos » 25 Jul 2019, 06:52

There's no documentation for this yet but you can use the existing code as reference, e.g. the attribute panel:
- Classes you need (Factory and Standard): https://github.com/aimeos/ai-admin-jqad ... /Attribute
- Subparts (additional directories) are optional
- Templates you need (list-standard and item-standard): https://github.com/aimeos/ai-admin-jqad ... /attribute
- Add to navigation bar: https://github.com/aimeos/ai-admin-jqad ... navbar.php
- Give permissions: https://github.com/aimeos/ai-admin-jqad ... source.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

Re: How to make new navigation links in aimeos in admin pannel

Post by whatdaro » 02 Sep 2021, 10:08

hi,
Is there an updated documentation for the current new version please? thanks

Also, is there documentation on how to add links to the userside navbar please.

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

Re: How to make new navigation links in aimeos in admin pannel

Post by aimeos » 03 Sep 2021, 06:07

whatdaro wrote: 02 Sep 2021, 10:08 Is there an updated documentation for the current new version please? thanks
There are no relevant changes in the current version so the documentation still applies.
whatdaro wrote: 02 Sep 2021, 10:08 Also, is there documentation on how to add links to the userside navbar please.
You can overwrite the common/page-standard.php template and add your links there:
https://github.com/aimeos/ai-admin-jqad ... andard.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

Re: How to make new navigation links in aimeos in admin pannel

Post by whatdaro » 05 Sep 2021, 09:31

whatdaro wrote: 02 Sep 2021, 10:08 Also, is there documentation on how to add links to the userside navbar please.
You can overwrite the common/page-standard.php template and add your links there:
https://github.com/aimeos/ai-admin-jqad ... andard.php
[/quote]

Thanks for the reply but the second part of my question by "user" I meant the shop front, how to add non-product category menu options. to the main navbar , thanks.

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

Re: How to make new navigation links in aimeos in admin pannel

Post by aimeos » 05 Sep 2021, 12:26

Copy the vendor/aimeos/aimeos-laravel/src/views/base.blade.php to resources/views/shop/base.blade.php and add the links to the Blade template:
https://github.com/aimeos/aimeos-larave ... .blade.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

Re: How to make new navigation links in aimeos in admin pannel

Post by whatdaro » 05 Sep 2021, 13:41

aimeos wrote: 05 Sep 2021, 12:26 Copy the vendor/aimeos/aimeos-laravel/src/views/base.blade.php to resources/views/shop/base.blade.php and add the links to the Blade template:
https://github.com/aimeos/aimeos-larave ... .blade.php
I've copied the base.blade.php as advised, but the changes I make to it don't load up, only the content from the original.
Should I delete the original?
Also where would I add menu links, when the blade file yields 'aimeos_nav' to build the list from the Catalogs.
If I add additional 'ul>li' list for my extra menu links, they don't display properly.

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

Re: How to make new navigation links in aimeos in admin pannel

Post by aimeos » 06 Sep 2021, 06:26

Which Aimeos version are you using? It should be 2021.07.x

You can find the documentation for overwriting the Blade templates here:
https://aimeos.org/docs/latest/laravel/ ... -templates

The aimeos_nav section contains the top-level categories and if you want to add a another link there, you have to add another category. The alternative is that you add your own links beside the categories in a new section like:

Code: Select all

<ul><li>new link>/li></ul>
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

Re: How to make new navigation links in aimeos in admin pannel

Post by whatdaro » 07 Sep 2021, 22:10

aimeos wrote: 06 Sep 2021, 06:26 The aimeos_nav section contains the top-level categories and if you want to add a another link there, you have to add another category. The alternative is that you add your own links beside the categories in a new section like:

Code: Select all

<ul><li>new link>/li></ul>
The problem is adding another category points the url to an expected product category page, I want to display a text and image page in the contents, it will not allow me to route to another URL.
Adding another ul section displays after the search, and even if I put it at the front it displays with a large gap between it and the regular navbar.

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

Re: How to make new navigation links in aimeos in admin pannel

Post by aimeos » 08 Sep 2021, 05:10

You can fix that with custom CSS rules.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply