Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

AEM 6.5 and overlays

Avatar

Level 1

Hi Everyone

 

This is my first posting to the adobe community. 

We are in the process of migrating from AEM 6.2 to Aem 6.5.

 

I had to create a new table component in 6.5 that completely changed the table properties dialog.  This was no problem in 6.2.

 

However I've tried doing the same in 6.5 and I cannot get it to work, hoping someone will be able to help.

 

I know we should not be overlaying these files but i do not want to modify the OFTB files.

My issue is that the new dictionary entries are not appearing. 

 

I created overlay files for Coral.template.js (modified to use my new entries) and for DefaultI18nProvider.js (contains new entries). 

What is happening is that it is not 'picking' up my new label entries. 

i've included 3 files,

the original table properties dialog:

original table properties..PNG

The new table properties dialog we would like (ignore the colors) :

new_table_properties.png

and what I am seeing currently:

error_table_properties.PNG

I cannot figure out why it is not picking up my new text, all other files I've overlayed are loaded. 

This is my structure:

table component structure.PNG

1 Accepted Solution

Avatar

Correct answer by
Employee

The i18n bundle relies on a cache that doesn't necessarily populate new items that are added to the dictionary after the cache was initially built. You'll likely need to trigger the cache to rebuild manually to see your new dictionary entry picked up.

 

An effective workaround to accomplish this is the following:

 

1) On the Dictionary Translator page :
 
 
2) Pick your dictionary and make changes.
 
3) Ensure you click Save
 
4) !! IMPORTANT PART !! to rebuild the cache manually, after saving, click the Reset and Refresh button. This will rebuild the cache.
 
5) See that the translated value is indeed picked up on your page / dialog / whatever for that i18n key
 
Let me know if that helps

~Marc

View solution in original post

2 Replies

Avatar

Employee Advisor

If you have created the nodes with same structure and same name, AEM will always pick files from /apps.

 

Can you verify the structure Or share the package and I can try to check whats going on?

Avatar

Correct answer by
Employee

The i18n bundle relies on a cache that doesn't necessarily populate new items that are added to the dictionary after the cache was initially built. You'll likely need to trigger the cache to rebuild manually to see your new dictionary entry picked up.

 

An effective workaround to accomplish this is the following:

 

1) On the Dictionary Translator page :
 
 
2) Pick your dictionary and make changes.
 
3) Ensure you click Save
 
4) !! IMPORTANT PART !! to rebuild the cache manually, after saving, click the Reset and Refresh button. This will rebuild the cache.
 
5) See that the translated value is indeed picked up on your page / dialog / whatever for that i18n key
 
Let me know if that helps

~Marc