掲示板
Translations dont work in web content when using custom structure
11年前 に Javier Vera によって更新されました。
Translations dont work in web content when using custom structure
New Member 投稿: 4 参加年月日: 12/10/27 最新の投稿
Hi,
I'm using Liferay 6.1.1 GA2.
I created a custom structure with custom layout for web contents.
The structure has 3 fields marked as "Localizable". Then, I add two translations. I fill the translations' fields with the desired text, push Save button, publish and I don't get any result. All the changes I perform to the translations' fields I lose them all ... ALWAYS except for the mandatory title field of the Web Content, the title field gets updated fine.
If I use the default structure I can add translations and they work perfectly.
Is this a bug? or my fault?
Thanks
Javier
edit: title clarification
I'm using Liferay 6.1.1 GA2.
I created a custom structure with custom layout for web contents.
The structure has 3 fields marked as "Localizable". Then, I add two translations. I fill the translations' fields with the desired text, push Save button, publish and I don't get any result. All the changes I perform to the translations' fields I lose them all ... ALWAYS except for the mandatory title field of the Web Content, the title field gets updated fine.
If I use the default structure I can add translations and they work perfectly.
Is this a bug? or my fault?
Thanks
Javier
edit: title clarification
11年前 に Gaurav Jain によって更新されました。
RE: Translations dont work in web content when using custom structure
Regular Member 投稿: 145 参加年月日: 11/01/31 最新の投稿
Hi Javier,
I tried with same liferay version and it worked just fine for me.
I tried with same liferay version and it worked just fine for me.
11年前 に Javier Vera によって更新されました。
RE: Translations dont work in web content when using custom structure
New Member 投稿: 4 参加年月日: 12/10/27 最新の投稿Gaurav Jain:
Hi Javier,
I tried with same liferay version and it worked just fine for me.
Hi,
Ok I have tried now starting from scratch and it *does work*
BUT the old structure and web content I have it does not work very weird ... i have tried multiple things and it does not work. Any hint ?
I guess the only solution is to erase this structure and create it again from scratch (great, loads of time lost )
11年前 に Gaurav Jain によって更新されました。
RE: Translations dont work in web content when using custom structure
Regular Member 投稿: 145 参加年月日: 11/01/31 最新の投稿
Maybe you can share your structure xml, so that it could be checked that why it created such problem !!
11年前 に Javier Vera によって更新されました。
RE: Translations dont work in web content when using custom structure
New Member 投稿: 4 参加年月日: 12/10/27 最新の投稿
Sure ! this is the XML. "title", "content" are the supposed to be Localized
<!--?xml version="1.0"?-->
<root>
<dynamic-element name="title" type="text" index-type="not-searchable" repeatable="false">
<meta-data>
<entry name="displayAsTooltip">false</entry>
<entry name="required">false</entry>
<entry name="instructions"></entry>
<entry name="label">title</entry>
<entry name="predefinedValue"></entry>
</meta-data>
</dynamic-element>
<dynamic-element name="content" type="text_area" index-type="" repeatable="false">
<meta-data>
<entry name="displayAsTooltip">true</entry>
<entry name="required">true</entry>
<entry name="instructions"></entry>
<entry name="label">TextBoxField</entry>
<entry name="predefinedValue"></entry>
</meta-data>
</dynamic-element>
<dynamic-element name="link" type="text" index-type="" repeatable="false">
<meta-data>
<entry name="displayAsTooltip">true</entry>
<entry name="required">false</entry>
<entry name="instructions"></entry>
<entry name="label">TextField</entry>
<entry name="predefinedValue"></entry>
</meta-data>
</dynamic-element>
<dynamic-element name="image" type="image" index-type="" repeatable="false">
<meta-data>
<entry name="displayAsTooltip">true</entry>
<entry name="required">false</entry>
<entry name="instructions"></entry>
<entry name="label">ImageField</entry>
<entry name="predefinedValue"></entry>
</meta-data>
</dynamic-element>
</root>
11年前 に Javier Vera によって更新されました。
RE: Translations dont work in web content when using custom structure
New Member 投稿: 4 参加年月日: 12/10/27 最新の投稿
ok problem must be inside the web content ... because If I create another web content with the same structure and template, it does work!