Skip to main content

ATG Multilingual Repository design

Here is the example of the multilingual image settings for category.

<item-descriptor name="category">
<table name="pjt_category_images" type="primary" id-column-name="image_id">
<!-- IMAGE TRANSLATION PROPETIES BEGINS -->
<property column-name="promotional_image"
display-name-resource="promotionalImage" data-type="string"
name="promotionalImageDefault">
<attribute name="resourceBundle"
value="atg.projects.store.InternationalStoreCatalogTemplateResources" />
<attribute name="propertySortPriority" value="-11" />
</property>
<property name="promotionalHeroImageDefault" column-name="promotional_hero_image"
data-type="string" readable="true" writable="true" queryable="true"
hidden="false" expert="false" cache-mode="inherit">
<attribute name="resourceBundle"
value="atg.projects.store.InternationalStoreCatalogTemplateResources" />
<attribute name="propertySortPriority" value="-11" />
</property>
<property name="smallImageDefault" column-name="small_image"
data-type="string" readable="true" writable="true" queryable="true"
hidden="false" expert="false" cache-mode="inherit">
<attribute name="resourceBundle"
value="atg.projects.store.InternationalStoreCatalogTemplateResources" />
<attribute name="propertySortPriority" value="-11" />
</property>
<!-- IMAGE TRANSLATION PROPETIES ENDS -->
</table>

<!-- IMAGE TRANSLATION PROPETIES EXPRESSION BEGINS -->
<property display-name-resource="promotionalImage" data-type="string"
hidden="true" writable="false" name="promotionalImage" queryable="true">
<derivation user-method="atg.repository.dp.LanguageTranslation">
<expression>promotionalImageDefault</expression>
</derivation>
<attribute name="defaultProperty" value="promotionalImageDefault" />
<attribute name="defaultLocale" value="" />
</property>
<property display-name-resource="promotionalHeroImage"
data-type="string" hidden="true" writable="false" name="promotionalHeroImage"
queryable="true">
<derivation user-method="atg.repository.dp.LanguageTranslation">
<expression>promotionalHeroImageDefault</expression>
</derivation>
<attribute name="defaultProperty" value="promotionalHeroImageDefault" />
<attribute name="defaultLocale" value="" />
</property>
<property display-name-resource="smallImage" data-type="string"
hidden="true" writable="false" name="smallImage" queryable="true">
<derivation user-method="atg.repository.dp.LanguageTranslation">
<expression>smallImageDefault</expression>
</derivation>
<attribute name="defaultProperty" value="smallImageDefault" />
<attribute name="defaultLocale" value="" />
</property>
<!-- IMAGE TRANSLATION PROPETIES EXPRESSION ENDS -->

<table name="pjt_category_images_xlate" id-column-names="image_id"
multi-column-name="locale" type="multi">
<property category-resource="categoryAppearance"
component-item-type="pjtCategoryImageTranslation" column-name="translation_id"
display-name="Translations" display-name-resource="translations"
data-type="map" name="translations">
<attribute name="resourceBundle"
value="atg.projects.store.InternationalStoreCatalogTemplateResources" />
<attribute name="propertySortPriority" value="-12" />
</property>
</table>
</item-descriptor>

<item-descriptor name="pjtCategoryImageTranslation">
<table name="pjt_image_xlate" id-column-name="id" type="primary">
<property name="promotionalImage" column-name="promotional_image"
data-type="string" readable="true" writable="true" queryable="true"
hidden="false" expert="false" cache-mode="inherit" />
<property name="promotionalHeroImage" column-name="promotional_hero_image"
data-type="string" readable="true" writable="true" queryable="true"
hidden="false" expert="false" cache-mode="inherit" />
<property name="smallImage" column-name="small_image"
data-type="string" readable="true" writable="true" queryable="true"
hidden="false" expert="false" cache-mode="inherit" />
</table>
</item-descriptor>



Comments

Popular posts from this blog

#ThankYouCitrisys

MAY 5, 2015 an unforgettable day in my life. Why this award is so special to me? Because, after 8 years (After completion of Engineering), I landed on a good place where they identified me and involved me in the good projects with suitable PMOs. With all their support in Citrisys, I did small things with my involvement. For that, Citrisys, awarded me this "Award of Excellence". This award not shows me the best performance, but, it shows me to work more and more. Thank you Mr.ARA (CEO, Citrisys Solutions) for this award. #ThankYouCitrisys

Citrisys Poster Competition work 02