Announcement

Collapse
No announcement yet.

Address format for dutch users

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Address format for dutch users

    Is is possible to change the address layout in the viewer from: City - Postcode to Postcode - City I think this is also in france, belgium and germany.

  • #2
    Hi

    Yes but manually. The easiest way: client/res/templates/fields/address/*.tpl
    Edit those files.

    Comment


    • #3
      Hi Yuri,

      Fixed, your answer worked !
      Thanks

      Comment


      • #4
        This works for the edit form, but does not present the view in a correct way. I get the impression that this code displays the view of the address... But what to change to get it postalcode, city, state?

        if (cityValue || stateValue || postalCodeValue) {
        if (html != '') {
        html += '<br>'
        }
        if (cityValue) {
        html += cityValue;
        }
        if (stateValue) {
        if (cityValue) {
        html += ', ';
        }
        html += stateValue;
        }
        if (postalCodeValue) {
        if (cityValue || stateValue) {
        html += ' ';
        }
        html += postalCodeValue;
        }
        }

        Comment


        • #5
          Yes. This code composes address for detail view.

          Comment


          • #6
            And the view file is here /client/src/views/fields/address.js

            Comment

            Working...
            X