cancel
Showing results for 
Search instead for 
Did you mean: 

Using Content Model I18N on Aikau pages

aviriel
Confirmed Champ
Confirmed Champ
I try to build a custom page based on Aikau (Alfresco 5.1.c-EA) and I meet one problem:
I want to show document properties on the page (view form). I show properties with "alfresco/documentlibrary/AlfDocument" -> "alfresco/renderers/Property" widgets. The problem is that I cannot get l10n for the labels and values of properties with LIST constraints. It looks like this:
[img=624x382]https://dl.dropboxusercontent.com/u/2916264/Selection_055.png[/img]

Surf pages usually resolved it automatically on the Share side (not client) by getting form definition and node properties. On Surf pages we get a form as ready-to-use HTML. But on Aikau-based pages we build a form on the client side. Is it a way to resolve this issue in Aikau without rewriting all that things that worked out of the box on old Surf pages?
2 REPLIES 2

ddraper
World-Class Innovator
World-Class Innovator
Depending upon your implementation you could still set the message values in the WebScript JS controller using the msg.get() function. However, as you say - there's nothing automatic to inspect the model at the moment. This is a limitation that we currently have. At some point I hope that we'll be able to upgrade the forms runtime to use Aikau and these types of issue will hopefully be resolved - but there is no simple solution to this at the moment unfortunately.

aviriel
Confirmed Champ
Confirmed Champ
I see. Thank you for the reply. I will try to implement about some ugly hacks to make it works now. And then I hope to see upgraded forms runtime one day.