Question

Icon

Hi Team 

How to insert an Icon (or) Image instead of a button.

 

 

Hoping for a positive reply 

Regards

manikanta.

 

Like 0

Like

7 comments

Dear Manikanta,

In order to add an image to the button you need to indicate imageConfig property for the button. Please see the example:

{
					"operation": "insert",
					"parentName": "ActionButtonsContainer",
					"propertyName": "items",
					"name": "PeriodSelectButton",
					"values": {
						"itemType": Terrasoft.ViewItemType.BUTTON,
						"style": Terrasoft.controls.ButtonEnums.style.BLUE,
						//"caption": "test",
						"imageConfig": {"bindTo": "Resources.Images.PeriodSelectImage"},
						"controlConfig": {
						},
						"layout": {
							"column": 0,
							"row": 2,
							"colSpan": 1
						}
					}
				}

The image itself should be added to the page resources: http://prntscr.com/opjzak

Regards,

Anastasia

Anastasia Botezat,

 

I can't see where these custom added images are stored in Creatio, can you confirm if these are added into the relevant package in the Pkg folder when pressing the 'Download packages to file system' button in the configuration tool? If not, how should these icons be deployed to other environments?



Many thanks,

Harvey

Harvey Adcock,

 

On the page or section client schema you're adding the button to, on the left side you can see a section for images, you can right click there to add a new image resource and give it a name. In the same code above the image resource name is PeriodSelectImage.

 

 

Ryan

Ryan Farley,

 

Ah sorry, I didn't word my question very well - I can add the images under the module structure fine, and the new icons appear in the UI on my local Creatio instance as expected, what I intended my question to be about was how these images are stored on the file system so they can be transferred between environments, as I couldn't see the image file anywhere under the package the module was in, and I can't see any additional bound data. Do you know if these are moved between environments automatically?

 

Many thanks,

Harvey

Having tested this myself, it does appear to be saved to the file system and make it up to SVN somehow, although I still cannot locate the icons in the file system.

Harvey Adcock,

 

They end up in the file system at mycreatio/0/conf/content/img - however, this isn't really needed since to move from env to env, all you need to do is include the client schema you've added it to as an image resource and the image will come along with it.

 

Ryan

Show all comments