Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Translation value in dictionary list
after i sort the dictionary list can i add the Translation value to the view?
<div class="umb-table-cell" ng-repeat="column in item.translations"> <i class="{{column.hasTranslation ? 'icon-check color-green' : 'icon-alert color-red'}}"></i> </div>
can i display the Translation value instead of the green V
Hi,
not sure what those translations are but you would display the items your iterating like this:
<div class="umb-table-cell" ng-repeat="column in item.translations"> <i class="{{column.hasTranslation ? 'icon-check color-green' : ''}}"> {{column.hasTranslation ? column.value : ''}} </i> </div>
note that column.value is only a placeholder. The property you want to display might have a different name.
-Jonathan
that column have only 2 properties (hasTranslation, displayName). i need to add column.value to display that value
Making changes in this view will be overwritten when you upgrade Umbraco. Keep that in mind.
Dave
yes i know. for now i'm using umbraco 7. thank you.
Hi
Doesn't matter if you use V7. Even if you do a patch upgrade it will override this file.
dave
thank you.
I found a solution for this. I changed Umbraco source code in 3 places.
Umbraco.Web.Models.ContentEditing -> DictionaryOverviewTranslationDisplay, add DataMember named "translationValue".
DictionaryModelMapper.cs, add TranslationValue = translation != null ? translation.Value : string.Empty after "HasTranslation..."
list.html, we can use the new property and print the translationValue to dictionary list. "column.translationValue"
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Translation value in dictionary list
Translation value in dictionary list
after i sort the dictionary list can i add the Translation value to the view?
can i display the Translation value instead of the green V
Hi,
not sure what those translations are but you would display the items your iterating like this:
note that column.value is only a placeholder. The property you want to display might have a different name.
-Jonathan
that column have only 2 properties (hasTranslation, displayName). i need to add column.value to display that value
Making changes in this view will be overwritten when you upgrade Umbraco. Keep that in mind.
Dave
yes i know. for now i'm using umbraco 7. thank you.
Hi
Doesn't matter if you use V7. Even if you do a patch upgrade it will override this file.
dave
thank you.
I found a solution for this. I changed Umbraco source code in 3 places.
Umbraco.Web.Models.ContentEditing -> DictionaryOverviewTranslationDisplay, add DataMember named "translationValue".
DictionaryModelMapper.cs, add TranslationValue = translation != null ? translation.Value : string.Empty after "HasTranslation..."
list.html, we can use the new property and print the translationValue to dictionary list. "column.translationValue"
is working on a reply...