I created a custom module to add a simple tagging possibility to accounts and contacts. It’s only a little layout bug, but is it possible to create custom icons for this module?
The module builder created some demo icons in custom\themes\default\images, but no icons are shown on the website (subpanels, left shortcut bar, …).
Or do I have to clear some cache?
thank you for the hint.
Upgrade wizard shows “File Permissions: All Files Writable”.
Are the icons managed via css/fontawesome? There is a “”-Tag in front of the module name, but no icon shown.
How can I add an icon to the css/fontawesome declaration?
Set the following permissions on the SuiteCRM directory:
sudo chown -R www-data:www-data .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload config_override.php
I tried a fresh 7.10.4 installation on a new ubuntu VM with 777 permissions on the suitecrm-folder:
Create new module.
Publish module.
Quick repair and rebuild.
I think the issue is the following when we create a custom module the name somehow is generated on the class of the icon
and because is a custom module you need to be very lucky to guess that the name will much with an icon .
Can someone kindly let us know which library of icons SuiteCRM is using?
do you know which exactly file is the one that generates that
with the className = customModuleName ?
3) The problem start when and update of SuiteCrm take place and they remove .svg icons and start putting images with the new way.
I can confirm the following :
On my production server i run Version 7.9.12 and icons are handled by .svg icons
On my Dev Server i am running the latest 7.10.7
and the icons are broken on the custom modules - Custom sub-panels - studio(custom module icons) because of course my custom-module- names does not much with any icon in the class… @stf thanks for the photos i can confirm the exact same issue.
That’s my workaround i hope it helps
Thanks a lot everyone for the good work!
I succesfully display a custom icon of a custom module in SuiteCRM 7.11 using SuiteP theme, doing this:
Create the file “style.css” inside folder custom/themes/SuiteP/css/Dawn
In styles.css add a css class “.suitepicon-module-pvr-hobbie:before{content:”\f1b8"}" (My custom module name is PVR_Hobbie and you should modify the content for your desired icon)
Note that you should do this in all sub-themes of SuiteP.
I tried your method, it worked, but the thing is, after I execute repair, I lost the modification. I suppose the file style.css got rollbacked.
Since we need to execute repair from time to time, do we really need to restore the modified style.css every time after repair?
Any idea to sort it out?
That file style.css you created, is it a full copy of the big style.css in SuiteP (with your changes added), or is it a small CSS file with just what you want to change?
Thank you for your quick response.
I didn’t create a new style.css, and it was there.
I just insert the definition for the icon of my custom module by simulating the icon definition of other module.
If the file is there in “custom” directory, that is probably because you created it there in the past, for some reason.
I recently discovered that the CSS files in “/custom/themes” directory are not handled in the standard fashion: they don’t completely replace their equivalent in “/themes” directory. Instead, they are appended to the default file.
So the correct thing to do is to use those custom files just to add some CSS, not to replace the entire thing (leaving you in a situation that is not very good when upgrades come and change style.css, which is common to happen).
So I was able to replace the Accounts module icon by creating
Note that the file style.css is inside “custom” folder (custom/themes/SuiteP/css/Dawn). I’ve been working several days after I wrote the change, doing a lot of repair and rebuilds and never lost my changes.