Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-45541

Wrong order on Available Translations for Dynamic Structures (DDM)

Details

    Description

      1) Create following structure

      <root available-locales="de_DE,en_US" default-locale="de_DE">
      	<dynamic-element dataType="string" indexType="keyword" name="entry" readOnly="false" repeatable="true" required="false" showLabel="true" type="text" width="small">
      		<meta-data locale="de_DE">
      			<entry name="label">
      				<![CDATA[Inhalt]]>
      			</entry>
      			<entry name="predefinedValue">
      				<![CDATA[]]>
      			</entry>
      			<entry name="tip">
      				<![CDATA[]]>
      			</entry>
      		</meta-data>
      		<meta-data locale="en_US">
      			<entry name="label">
      				<![CDATA[Content]]>
      			</entry>
      			<entry name="predefinedValue">
      				<![CDATA[]]>
      			</entry>
      			<entry name="tip">
      				<![CDATA[]]>
      			</entry>
      		</meta-data>
      	</dynamic-element>
      </root>
      

      2) Create following template

      <#if entry.getSiblings()?has_content>
      <table class="entrylist">
          <tr>
          <#if locale == "de_DE">
              <th>Eintrag</th>
      	<#elseif locale == "en_US">	
              <th>Entry</th>
      	</#if>
          </tr>
      	<#list entries.getSiblings() as cur_entry>
      	    <tr>
          	    <td>${cur_entry.entry.getData()}</td>
              </tr>
      	</#list>
      </table>	
      </#if>
      

      3) Create new "Web Content" using this template.

      4) Enter a title and two entries, say "Content 1" and "Content 3"

      5) Klick "Save as draft"

      6) Klick "Add translation", select "German", and edit the translation.

      7) Save the translation.

      8) Now add an entry between "Content 1" and "Content 3" by clicking the plus sign near to "Content 1".

      9) Enter "Content 2" and klick "Save as draft".

      10) Click on "Available Translations" / "German"

      11) The Translation opens, and you will see, the corresponding translation for "Content 1" is directly followed by the corresponding translation for "Content 3". The new entry was not inserted but appended.

      12) Similar to that, if a non-trailing entry is removed, in the translation not the corresponding entry is removed, but just the last one.

      Attachments

        Issue Links

          Activity

            People

              linda.sui Linda Sui
              ajakobi Alexander Jakobi (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                7 years, 24 weeks, 3 days ago

                Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M1