Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • itaRubin 5 posts 74 karma points
    5 days ago
    itaRubin
    0

    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?

    <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

    dictionary view

  • Jonathan Distenfeld 19 posts 163 karma points
    4 days ago
    Jonathan Distenfeld
    0

    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

  • itaRubin 5 posts 74 karma points
    1 day ago
    itaRubin
    0

    that column have only 2 properties (hasTranslation, displayName). i need to add column.value to display that value

  • Dave Woestenborghs 3159 posts 10354 karma points MVP 3x admin c-trib
    4 days ago
    Dave Woestenborghs
    1

    Making changes in this view will be overwritten when you upgrade Umbraco. Keep that in mind.

    Dave

  • itaRubin 5 posts 74 karma points
    1 day ago
    itaRubin
    0

    yes i know. for now i'm using umbraco 7. thank you.

Please Sign in or register to post replies

Write your reply to:

Draft