Custom.css changes arent working

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
parkktech
Posts: 4
Joined: 16 Apr 2024, 01:39

Custom.css changes arent working

Post by parkktech » 16 Apr 2024, 01:59

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.

kdim95
Advanced
Posts: 213
Joined: 26 Aug 2022, 12:17

Re: Custom.css changes arent working

Post by kdim95 » 16 Apr 2024, 11:17

Hello,

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)
Best regards

User avatar
parkktech
Posts: 4
Joined: 16 Apr 2024, 01:39

Re: Custom.css changes arent working

Post by parkktech » 16 Apr 2024, 17:24

Yes, I used your extension builder so it appears that is already in place.

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?

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

Re: Custom.css changes arent working

Post by aimeos » 17 Apr 2024, 08:01

Did you add your extension to the ./packages/ directory and installed it via composer?
https://aimeos.org/docs/latest/developer/extensions/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
parkktech
Posts: 4
Joined: 16 Apr 2024, 01:39

Re: Custom.css changes arent working

Post by parkktech » 17 Apr 2024, 19:12

Of course, and all the menu items are showing from my extension.
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
aimeos-gemco-core.png (72.4 KiB) Viewed 114733 times

User avatar
parkktech
Posts: 4
Joined: 16 Apr 2024, 01:39

Re: Custom.css changes arent working

Post by parkktech » 18 Apr 2024, 21:18

Ok, I got it working. It turns out your extension builder added the

Code: Select all

	"name": "gemcopro-core CSS",
		"file": "gemcopro-core.css",
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

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

Re: Custom.css changes arent working

Post by aimeos » 19 Apr 2024, 12:42

Which Aimeos version do you use?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
peter69
Posts: 98
Joined: 09 Jun 2022, 19:31

Re: Custom.css changes arent working

Post by peter69 » 07 Jun 2024, 05:33

I have the same issue. It only works if I set the 'file' to 'index-css'.

I'm using:

'aimeos/aimeos-laravel': '~2024.04'
'laravel/framework': '^11.0'

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

Re: Custom.css changes arent working

Post by aimeos » 07 Jun 2024, 06:17

You need a 2024 version of the Aimeos extension generated here: https://aimeos.org/extensions

If you update from earlier versions, please make sure that the "file" properties in the "pkgs" section of the manifest.jsb2 file are "index-css" respectively "index-js".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
peter69
Posts: 98
Joined: 09 Jun 2022, 19:31

Re: Custom.css changes arent working

Post by peter69 » 10 Jun 2024, 15:04

Got it!, Thanks!

Post Reply