Custom.css changes arent working
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!
Custom.css changes arent working
Hello guys,
I'm new here but hope to do a lot with this package. But first I need to figure out how to properly extend it.
I was able to build a package gemcopro-core and extend the admin menu in the config > admin.php however when I add my changes to get the icon into the custom.css it's not showing. In fact no changes I make there are being reflected.
I also disabled the cache for development.
Is there a special command I need to run to rebuild the css?
I'm sure I'm missing something simple here.
I'm new here but hope to do a lot with this package. But first I need to figure out how to properly extend it.
I was able to build a package gemcopro-core and extend the admin menu in the config > admin.php however when I add my changes to get the icon into the custom.css it's not showing. In fact no changes I make there are being reflected.
I also disabled the cache for development.
Is there a special command I need to run to rebuild the css?
I'm sure I'm missing something simple here.
Re: Custom.css changes arent working
Hello,
Check the following:
Check the following:
- You are editing the CSS located at your-extension/themes/admin/jqadm/custom.css
- You have a manifest.php in the root of your extension with this config:
Code: Select all
'custom' => [ 'admin/jqadm' => [ 'manifest.jsb2', ], ],
- You have a manifest.jsb2 in the root of your extension with this config:
Code: Select all
"pkgs": [{ "name": "your-extension CSS", "file": "your-extension.css", "isDebug": true, "fileIncludes": [{ "text": "custom.css", "path": "themes/admin/jqadm/" }] }]
- You don't have cache (refresh with CTRL+SHIFT+R)
Re: Custom.css changes arent working
Yes, I used your extension builder so it appears that is already in place.
Yes here is manifest.jsb
I guess a caviot is we installed this in an existing larvel site with the intention of brining some of the customizations into Aimeos.
I'm nit seeing anything different than you posted.
Do you have any other suggestions?
Code: Select all
],
'custom' => [
'admin/jqadm' => [
'manifest.jsb2',
],
'controller/jobs' => [
'src',
],
Yes here is manifest.jsb
Code: Select all
{
"projectName": "gemcopro-core",
"licenseText": "proprietary",
"pkgs": [{
"name": "gemcopro-core CSS",
"file": "gemcopro-core.css",
"isDebug": true,
"fileIncludes": [{
"text": "custom.css",
"path": "themes/admin/jqadm/"
}]
}, {
"name": "gemcopro-core JS",
"file": "gemcopro-core.js",
"isDebug": true,
"fileIncludes": [{
"text": "custom.js",
"path": "themes/admin/jqadm/"
}]
}],
"resources" : []
}
I guess a caviot is we installed this in an existing larvel site with the intention of brining some of the customizations into Aimeos.
I'm nit seeing anything different than you posted.
Do you have any other suggestions?
Re: Custom.css changes arent working
Did you add your extension to the ./packages/ directory and installed it via composer?
https://aimeos.org/docs/latest/developer/extensions/
https://aimeos.org/docs/latest/developer/extensions/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
![Image](https://aimeos.org/fileadmin/aimeos.org/icons/star.png)
Re: Custom.css changes arent working
Of course, and all the menu items are showing from my extension.
It's just the CSS change isn't taking.
custom.css contents
It's just the CSS change isn't taking.
custom.css contents
Code: Select all
/*
* Custom gemcopro-core CSS
*/
/* Gemco Admin Menu*/
.aimeos .main-sidebar .menuitem-gemco i.icon::before {
content: "\F3E5";
}
.aimeos .main-sidebar .menuitem-settings i.icon::before {
content: "\F56B";
}
- Attachments
-
- aimeos-gemco-core.png (72.4 KiB) Viewed 19822 times
Re: Custom.css changes arent working
Ok, I got it working. It turns out your extension builder added the
to the manifest. But when looking at some other extensions like grape they use "file": "index-css",
When I switched to this it started working.
Can you guys better explain this name and file logic?
Thanks, Jason
Code: Select all
"name": "gemcopro-core CSS",
"file": "gemcopro-core.css",
When I switched to this it started working.
Can you guys better explain this name and file logic?
Thanks, Jason
Re: Custom.css changes arent working
Which Aimeos version do you use?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
![Image](https://aimeos.org/fileadmin/aimeos.org/icons/star.png)