Dynamic Script and Css

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!
User avatar
AmzoooJibal
Posts: 35
Joined: 12 Mar 2021, 20:09

Dynamic Script and Css

Post by AmzoooJibal » 18 Mar 2021, 16:05

Hello,
when i look to the ext packages templates all is'nt a laravel blade templae, so for that there is any way to dynamically load the script and the css for each page ? for exmple in resources/view/vendor/shop/aimeos/index.blade.php i need to work with section or yield then in ext package change the section or yield dynamically .

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

Re: Dynamic Script and Css

Post by aimeos » 19 Mar 2021, 06:34

You can add scripts and CSS URLs in the header-standard.php files of the components, e.g. for the detail component:
https://github.com/aimeos/ai-client-htm ... andard.php
They will be added automatically to the pages.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
AmzoooJibal
Posts: 35
Joined: 12 Mar 2021, 20:09

Re: Dynamic Script and Css

Post by AmzoooJibal » 19 Mar 2021, 14:11

this is for the client side what about admin side ?

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

Re: Dynamic Script and Css

Post by aimeos » 20 Mar 2021, 14:13

Yes, this is for the client side. For the admin backend, add your code to the files in the ./themes/ directory. Read https://aimeos.org/docs/latest/admin/jq ... stom-cssjs for more details.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply