Hey Creatio Community,

I'm currently working on customizing the LeftPanelTopMenu in Creatio, specifically trying to add a personalized icon to the getTopMenuConfig function.

Here's what I've tried so far:

  1. I imported a new image via Creatio's UI, and I can confirm it's in the system.
  2. In my code, I'm attempting to reference this image in the getTopMenuConfig function.

Here's a snippet of my code:

 getTopMenuConfig: function() {
                var menuConfig = [
                    {
                        id: "collapse-button",
                        tag: "CollapseMenu",
                        className: "Terrasoft.HoverMenuButton",
                        style: Terrasoft.controls.ButtonEnums.style.TRANSPARENT,
                        classes: {
                            imageClass: ["button-image-size"],
                            wrapperClass: ["collapse-button-wrapperEl"]
                        },
                        imageConfig: resources.localizableImages.collapseIconSvg,
                        click: {
                            bindTo: "collapseSideBar"
                        },
                        hint: this.getCollapseSideBarMenuItemCaptionConfig(),
                        markerValue: this.getCollapseSideBarMenuItemCaptionConfig()
                    },
					{
                        id: "send-button",
                        tag: "sendbtnMenu",
                        className: "Terrasoft.HoverMenuButton",
                        style: Terrasoft.controls.ButtonEnums.style.TRANSPARENT,
                        classes: {
                            imageClass: ["button-image-size"],
                            wrapperClass: ["collapse-button-wrapperEl"]
                        },
                        imageConfig: resources.localizableImages.sendSvg,
 
                    },

Despite my efforts, the personalized icon isn't appearing. I've double-checked the image name and made sure it's correct.

Has anyone encountered a similar issue or successfully added a personalized icon to the LeftPanelTopMenu? Any insights or suggestions would be greatly appreciated!

Thanks,

ABDERRAHMAN TIGAMI

Like 0

Like

0 comments
Show all comments

Hello community,



I have a use case where I need to hide the menu buttons in the "LeftPanelTopMenuModule" for all users except for System Administrators in FreedomUI.

I tried using these community posts, but I am unable to hide the buttons for other users.

https://community.creatio.com/questions/hide-run-process-button-side-panel-roles-1

and https://community.creatio.com/questions/hide-run-process-button-side-panel-roles-replacing-client-module







Could you please help me with this issue.



Thanks in advance 

Goparna Nasina

Like 0

Like

1 comments

Hello,

 

There is no ready instruction for this case in Freedom UI unforutnately and according to the code there is no property to override and it's not obvious how to add it:

I will ask our R&D team to make it possible to control the visibility of this panel based on the user role. Thank you for reporting this question to us and helping us in making the app better!

Show all comments