<?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: How to add an Experience Fragment to existing 150 pages without authoring/editing page and roll out pages ? in Adobe Experience Manager Discussions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-an-experience-fragment-to-existing-150-pages-without/m-p/462207#M34971</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17385379"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The best plausible approach would be to add through HTL, if it works.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hard Coded Example&lt;/STRONG&gt;&lt;BR /&gt;The first example uses sightly to reference an experience fragment, &lt;EM&gt;/content/experience-fragments/we-retail/equipment&lt;/EM&gt;, and the required variation, master. This will only work when the path includes the experience fragment variation path. The value here is hard coded.&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&amp;lt;sly data-sly-resource="${@path='/content/experience-fragments/we-retail/equipment/master',
&amp;nbsp; &amp;nbsp;selectors='content', wcmmode='disabled'}"&amp;gt;&amp;lt;/sly&amp;gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;Dynamic Example&lt;/STRONG&gt;&lt;BR /&gt;In the second example, we can see that our component adapts to the com.mysite.models.component.MyCustomComponent, Sling Model backend, and then it exposes the experience fragment in the exPath property. The value returned from the exPath is ‘&lt;EM&gt;/content/experience-fragments/we-retail/equipment/master&lt;/EM&gt;’.&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&amp;lt;sly data-sly-use.cmp="com.mysite.models.component.MyCustomComponent"&amp;gt;&amp;lt;/sly&amp;gt;
&amp;lt;sly data-sly-resource="${@path=cmp.exPath,
&amp;nbsp; &amp;nbsp;selectors='content', wcmmode='disabled'}"&amp;gt;&amp;lt;/sly&amp;gt;&lt;/PRE&gt;Reference: &lt;A href="https://sourcedcode.com/blog/aem/dynamically-include-an-experience-fragment-in-sightly" target="_blank" rel="noopener"&gt;https://sourcedcode.com/blog/aem/dynamically-include-an-experience-fragment-in-sightly&lt;/A&gt;&lt;BR /&gt;Hope that helps!&lt;/DIV&gt;&lt;DIV class=""&gt;Regards,&lt;/DIV&gt;&lt;DIV class=""&gt;Santosh&lt;/DIV&gt;</description>
    <pubDate>Fri, 22 Jul 2022 01:13:50 GMT</pubDate>
    <dc:creator>SantoshSai</dc:creator>
    <dc:date>2022-07-22T01:13:50Z</dc:date>
    <item>
      <title>How to add an Experience Fragment to existing 150 pages without authoring/editing page and roll out pages ?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-an-experience-fragment-to-existing-150-pages-without/m-p/462205#M34970</link>
      <description>&lt;P&gt;I have the situation where want to add an&amp;nbsp;Experience Fragment (having button component) to under image component without&amp;nbsp;authoring/editing and roll out all pages. These pages following same template.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 00:24:58 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-an-experience-fragment-to-existing-150-pages-without/m-p/462205#M34970</guid>
      <dc:creator>csaini</dc:creator>
      <dc:date>2022-07-22T00:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an Experience Fragment to existing 150 pages without authoring/editing page and roll out pages ?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-an-experience-fragment-to-existing-150-pages-without/m-p/462207#M34971</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17385379"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The best plausible approach would be to add through HTL, if it works.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hard Coded Example&lt;/STRONG&gt;&lt;BR /&gt;The first example uses sightly to reference an experience fragment, &lt;EM&gt;/content/experience-fragments/we-retail/equipment&lt;/EM&gt;, and the required variation, master. This will only work when the path includes the experience fragment variation path. The value here is hard coded.&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&amp;lt;sly data-sly-resource="${@path='/content/experience-fragments/we-retail/equipment/master',
&amp;nbsp; &amp;nbsp;selectors='content', wcmmode='disabled'}"&amp;gt;&amp;lt;/sly&amp;gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;Dynamic Example&lt;/STRONG&gt;&lt;BR /&gt;In the second example, we can see that our component adapts to the com.mysite.models.component.MyCustomComponent, Sling Model backend, and then it exposes the experience fragment in the exPath property. The value returned from the exPath is ‘&lt;EM&gt;/content/experience-fragments/we-retail/equipment/master&lt;/EM&gt;’.&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&amp;lt;sly data-sly-use.cmp="com.mysite.models.component.MyCustomComponent"&amp;gt;&amp;lt;/sly&amp;gt;
&amp;lt;sly data-sly-resource="${@path=cmp.exPath,
&amp;nbsp; &amp;nbsp;selectors='content', wcmmode='disabled'}"&amp;gt;&amp;lt;/sly&amp;gt;&lt;/PRE&gt;Reference: &lt;A href="https://sourcedcode.com/blog/aem/dynamically-include-an-experience-fragment-in-sightly" target="_blank" rel="noopener"&gt;https://sourcedcode.com/blog/aem/dynamically-include-an-experience-fragment-in-sightly&lt;/A&gt;&lt;BR /&gt;Hope that helps!&lt;/DIV&gt;&lt;DIV class=""&gt;Regards,&lt;/DIV&gt;&lt;DIV class=""&gt;Santosh&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Jul 2022 01:13:50 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-an-experience-fragment-to-existing-150-pages-without/m-p/462207#M34971</guid>
      <dc:creator>SantoshSai</dc:creator>
      <dc:date>2022-07-22T01:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an Experience Fragment to existing 150 pages without authoring/editing page and roll out pages ?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-an-experience-fragment-to-existing-150-pages-without/m-p/462220#M34972</link>
      <description>&lt;P&gt;Firstly, thank you for the quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a follow up question - my Experience Fragment is based on language copy such as "en-US", "ja-JP", "de-DE" etc.&lt;/P&gt;&lt;P&gt;content/experience-fragments/mysite/en_us/equipment/master&lt;/P&gt;&lt;P&gt;content/experience-fragments/mysite/ja_JP/equipment/master&lt;/P&gt;&lt;P&gt;content/experience-fragments/mysite/de_DE/equipment/master&lt;/P&gt;&lt;P&gt;How to deal exPath in this situation dynamically when page render as JP domain or other domain.&lt;BR /&gt;Thanks for the help in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 02:03:35 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-an-experience-fragment-to-existing-150-pages-without/m-p/462220#M34972</guid>
      <dc:creator>csaini</dc:creator>
      <dc:date>2022-07-22T02:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an Experience Fragment to existing 150 pages without authoring/editing page and roll out pages ?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-an-experience-fragment-to-existing-150-pages-without/m-p/462376#M34973</link>
      <description>&lt;P&gt;If you are working on an Editable template then you can edit it and place new content in structure or initial content section.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 14:18:40 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-an-experience-fragment-to-existing-150-pages-without/m-p/462376#M34973</guid>
      <dc:creator>sanketd27011989</dc:creator>
      <dc:date>2022-07-22T14:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an Experience Fragment to existing 150 pages without authoring/editing page and roll out pages ?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-an-experience-fragment-to-existing-150-pages-without/m-p/462378#M34974</link>
      <description>&lt;P&gt;In my case, each page have around 10 components ( banner, text, image, accordion etc) already on the page those are rendering as normal component not as structure or initial. I want to add Experience Fragment below the image component without authoring or roll out page.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 14:36:22 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-an-experience-fragment-to-existing-150-pages-without/m-p/462378#M34974</guid>
      <dc:creator>csaini</dc:creator>
      <dc:date>2022-07-22T14:36:22Z</dc:date>
    </item>
  </channel>
</rss>

