Can we create ui_config.json file in app folder customizations | Community
Skip to main content
Level 4
September 5, 2023
Solved

Can we create ui_config.json file in app folder customizations

  • September 5, 2023
  • 1 reply
  • 2059 views

I have created ui_config.json file in the /apps/fmdita/xmleditor/ui_config.json and made few customizations for the Guides xmleditor header bar. Still the header is rendering ui_config.json code from the libs folder(/libs/fmdita/clientlibs/clientlibs/xmleditor/ui_config.json)

Can someone please suggest how to make /apps/fmdita/xmleditor/ui_config.json  work for Guides xmleditor headers.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DivrajSingh

Hi,

I am genuinely unsure, sorry. I usually work with the out of the box configuration options of AEM, so I'm not super deep into solutions using code deployment.

 

I can make some educated guesses though 😉

 

If I understand the standard behaviour of Guides correctly, the config in the folder profile will always be active, thus overwriting your config in the apps folder. 

Maybe you could modify your folder profile through your code build. However, I haven't been able to figure out at which node those are stored so far, so some detective work would be needed. If you can locate the node at which the folder profiles are stored, maybe something can be done there.

 

Sorry that I can't be of more help here.

 

All Best,

Lukas


@beaula123 @lukas307478337x42 : the folder profile data is stored under /var/dxml/folderprofiles under which you will find the folder profile you want to target - each folder profile is given a unique id like "c7310376-89e4-e9b6-1874-d40100cdd566" under which ui_config.json can be found at "XmlEditorConfigs/ui_config.json", hence the path would be:

/var/dxml/folderprofiles/c7310376-89e4-e9b6-1874-d40100cdd566/XmlEditorConfigs/ui_config.json

 

So yes, you can use folder profile to override the ui_config.json - and to deploy it via code you can target the abovesaid node

1 reply

Level 2
September 5, 2023

Hi,

maybe there is a more fundamental way to do it, but did you include the ui_config.json file in your Folder Profile?

 

  1. Go to Tools>Guides>Folder Profiles
  2. Open the Folder Profile your authors will use. The Global Profile will be chosen by default, so maybe it would make sense to edit that one.
    (You can also download the default config there, if you ever want to reset your changes)
  3. Go to the tab Editor Configuration and click on edit.
  4. Here you can upload your custom ui_config.json
  5. Press Save

Now, when your authors use the Global Folder Profile (or your custom one), they should be able to use your configuration.

 

I hope that helps!

 

All Best,

Lukas

Beaula123Author
Level 4
September 5, 2023

Hi Lukas,

Is there any way to update the config file through code build. Or manual upload is only option?

 

Thanks

Level 2
September 5, 2023

Hi,

I am genuinely unsure, sorry. I usually work with the out of the box configuration options of AEM, so I'm not super deep into solutions using code deployment.

 

I can make some educated guesses though 😉

 

If I understand the standard behaviour of Guides correctly, the config in the folder profile will always be active, thus overwriting your config in the apps folder. 

Maybe you could modify your folder profile through your code build. However, I haven't been able to figure out at which node those are stored so far, so some detective work would be needed. If you can locate the node at which the folder profiles are stored, maybe something can be done there.

 

Sorry that I can't be of more help here.

 

All Best,

Lukas