<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Experience fragment Localization issue in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/experience-fragment-localization-issue/m-p/539676#M134056</link>
    <description>&lt;P&gt;I ended up creating a custom model class. As we have the path for Experience fragment in JCR of the page I modified the path as my custom requirement. Updated the experience-fragment's htl code used my model.&lt;/P&gt;
&lt;P data-unlink="true"&gt;Just updated&amp;nbsp;data-sly-resource@path&amp;nbsp;value.&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Default Experience fragment code below for reference:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;!--/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~ Copyright 2021 Adobe
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/--&amp;gt;
&amp;lt;div data-sly-use.fragment="com.adobe.cq.wcm.core.components.models.ExperienceFragment"
     data-sly-use.template="core/wcm/components/commons/v1/templates.html"
     data-sly-test=${fragment.configured}
     data-sly-set.selector="content.${request.requestPathInfo.selectorString}"
     data-sly-resource="${@path=fragment.localizedFragmentVariationPath, selectors=selector, wcmmode='disabled'}"
     id="${fragment.id}"
     class="cmp-experiencefragment cmp-experiencefragment--${fragment.name}"&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;sly data-sly-call="${template.placeholder @ isEmpty=!fragment.configured, classAppend='cmp-dd-experiencefragment'}"&amp;gt;&amp;lt;/sly&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 21:15:24 GMT</pubDate>
    <dc:creator>bpeddapudi</dc:creator>
    <dc:date>2022-08-05T21:15:24Z</dc:date>
    <item>
      <title>Experience fragment Localization issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/experience-fragment-localization-issue/m-p/461043#M132970</link>
      <description>&lt;P&gt;I am working on a project where experience fragments and pages are being translated. I am using an experience fragment in a page, when I got into a the language copy (translated ja_jp page) it not pulling the translated experience fragment. It's due to the folder structure of experience fragment which I can't change now. Is there any way to make translated experience fragment to show up in the page?&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I copy the experience fragment at "&lt;SPAN&gt;content/experience-fragments/&lt;FONT color="#FF0000"&gt;alexac/ja_jp&lt;/FONT&gt;/myef/master&lt;/SPAN&gt;" to "&lt;SPAN&gt;content/experience-fragments/&lt;FONT color="#FF0000"&gt;alexac/jp/ja_jp&lt;/FONT&gt;/myef/master&lt;/SPAN&gt;". I can see the translated fragment in the page as expected. But unfortunately I can't move the content now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Translated page path (example only):&amp;nbsp;&lt;A href="https://tester.com/content/alexac/jp/ja_jp/products/mypage.html" target="_blank"&gt;https://tester.com/content/&lt;FONT color="#FF0000"&gt;alexac/jp/ja_jp&lt;/FONT&gt;/products/mypage.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Experience fragment path:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://tester.com/aem/experience-fragments.html/content/experience-fragments/" target="_blank"&gt;https://tester.com/aem/experience-fragments.html/content/experience-fragments/&lt;/A&gt;&lt;FONT color="#FF0000"&gt;alexac/ja_jp&lt;/FONT&gt;/myef/master&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Localization documentation I was referring to:&lt;/P&gt;&lt;P&gt;&lt;A href="https://experienceleague.adobe.com/docs/experience-manager-core-components/using/components/experience-fragment.html?lang=en#localized-site-structure" target="_blank"&gt;https://experienceleague.adobe.com/docs/experience-manager-core-components/using/components/experience-fragment.html?lang=en#localized-site-structure&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any advice from the community.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 23:17:54 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/experience-fragment-localization-issue/m-p/461043#M132970</guid>
      <dc:creator>bpeddapudi</dc:creator>
      <dc:date>2022-07-14T23:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Experience fragment Localization issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/experience-fragment-localization-issue/m-p/461052#M132975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can write custom class which implements&amp;nbsp;ExperienceFragment and in&amp;nbsp;initModel() update the XF path as per your requirement.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 03:42:20 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/experience-fragment-localization-issue/m-p/461052#M132975</guid>
      <dc:creator>Ravi_Pampana</dc:creator>
      <dc:date>2022-07-15T03:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Experience fragment Localization issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/experience-fragment-localization-issue/m-p/539676#M134056</link>
      <description>&lt;P&gt;I ended up creating a custom model class. As we have the path for Experience fragment in JCR of the page I modified the path as my custom requirement. Updated the experience-fragment's htl code used my model.&lt;/P&gt;
&lt;P data-unlink="true"&gt;Just updated&amp;nbsp;data-sly-resource@path&amp;nbsp;value.&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Default Experience fragment code below for reference:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;!--/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~ Copyright 2021 Adobe
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/--&amp;gt;
&amp;lt;div data-sly-use.fragment="com.adobe.cq.wcm.core.components.models.ExperienceFragment"
     data-sly-use.template="core/wcm/components/commons/v1/templates.html"
     data-sly-test=${fragment.configured}
     data-sly-set.selector="content.${request.requestPathInfo.selectorString}"
     data-sly-resource="${@path=fragment.localizedFragmentVariationPath, selectors=selector, wcmmode='disabled'}"
     id="${fragment.id}"
     class="cmp-experiencefragment cmp-experiencefragment--${fragment.name}"&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;sly data-sly-call="${template.placeholder @ isEmpty=!fragment.configured, classAppend='cmp-dd-experiencefragment'}"&amp;gt;&amp;lt;/sly&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 21:15:24 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/experience-fragment-localization-issue/m-p/539676#M134056</guid>
      <dc:creator>bpeddapudi</dc:creator>
      <dc:date>2022-08-05T21:15:24Z</dc:date>
    </item>
  </channel>
</rss>

