<?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: Handling multiple domains using Externalizer in Adobe Experience Manager Discussions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/413121#M35256</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17430135"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can define it in the OOTB configuration.i.e., with&amp;nbsp;com.day.cq.commons.impl.ExternalizerImpl.xml and add the domain names. In your code you can read the configuration by passing the domain name.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN&gt;xml version&lt;/SPAN&gt;&lt;SPAN&gt;="1.0" &lt;/SPAN&gt;&lt;SPAN&gt;encoding&lt;/SPAN&gt;&lt;SPAN&gt;="UTF-8"&lt;/SPAN&gt;&lt;SPAN&gt;?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;jcr&lt;/SPAN&gt;&lt;SPAN&gt;:root &lt;/SPAN&gt;&lt;SPAN&gt;xmlns:&lt;/SPAN&gt;&lt;SPAN&gt;sling&lt;/SPAN&gt;&lt;SPAN&gt;="http://sling.apache.org/jcr/sling/1.0" &lt;/SPAN&gt;&lt;SPAN&gt;xmlns:&lt;/SPAN&gt;&lt;SPAN&gt;jcr&lt;/SPAN&gt;&lt;SPAN&gt;="http://www.jcp.org/jcr/1.0"&lt;BR /&gt;&lt;/SPAN&gt;   &lt;SPAN&gt;jcr&lt;/SPAN&gt;&lt;SPAN&gt;:primaryType&lt;/SPAN&gt;&lt;SPAN&gt;="sling:OsgiConfig"&lt;BR /&gt;&lt;/SPAN&gt;   &lt;SPAN&gt;externalizer.domains&lt;/SPAN&gt;&lt;SPAN&gt;="[author http://localhost:4502,publish http://localhost:4503,website1 https://www.website1.com,website2 https://www.website2.com]"&lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 19 Jun 2021 04:12:09 GMT</pubDate>
    <dc:creator>Asutosh_Jena_</dc:creator>
    <dc:date>2021-06-19T04:12:09Z</dc:date>
    <item>
      <title>Handling multiple domains using Externalizer</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/413114#M35253</link>
      <description>&lt;P&gt;Hello All - Is there a way to configure the externalizer for multiple publish domains? We have 4 domains in our project and would like to maintain the externalizer config based on run-modes. In the externalizer config it says, we need to specify publish followed by domain to specify the configs. i.e&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;publish &lt;A href="http://www.example1.com" target="_blank"&gt;www.example1.com&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;publish &lt;A href="http://www.example1.com" target="_blank"&gt;www.example2.com&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;publish &lt;A href="http://www.example1.com" target="_blank"&gt;www.example3.com&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;publish &lt;A href="http://www.example1.com" target="_blank"&gt;www.example4.com&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;How can I specify the configs. Since all are different domains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;com.day.cq.commons.impl.ExternalizerImpl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 21:12:01 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/413114#M35253</guid>
      <dc:creator>aemninja</dc:creator>
      <dc:date>2021-06-18T21:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple domains using Externalizer</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/413116#M35254</link>
      <description>&lt;P&gt;Have you explored context-aware configuration for your problem? I believe you should be able to create separate configs for different paths of your repository.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 21:31:13 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/413116#M35254</guid>
      <dc:creator>mayank_saklech1</dc:creator>
      <dc:date>2021-06-18T21:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple domains using Externalizer</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/413117#M35255</link>
      <description>&lt;LI-USER uid="11060701" login="mayank_saklech1"&gt;&lt;/LI-USER&gt; - Actually the same content slice (i.e /content/test/en/) is used for all four sites. we cannot use context-aware here as the path is same.</description>
      <pubDate>Fri, 18 Jun 2021 21:34:39 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/413117#M35255</guid>
      <dc:creator>aemninja</dc:creator>
      <dc:date>2021-06-18T21:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple domains using Externalizer</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/413121#M35256</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17430135"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can define it in the OOTB configuration.i.e., with&amp;nbsp;com.day.cq.commons.impl.ExternalizerImpl.xml and add the domain names. In your code you can read the configuration by passing the domain name.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN&gt;xml version&lt;/SPAN&gt;&lt;SPAN&gt;="1.0" &lt;/SPAN&gt;&lt;SPAN&gt;encoding&lt;/SPAN&gt;&lt;SPAN&gt;="UTF-8"&lt;/SPAN&gt;&lt;SPAN&gt;?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;jcr&lt;/SPAN&gt;&lt;SPAN&gt;:root &lt;/SPAN&gt;&lt;SPAN&gt;xmlns:&lt;/SPAN&gt;&lt;SPAN&gt;sling&lt;/SPAN&gt;&lt;SPAN&gt;="http://sling.apache.org/jcr/sling/1.0" &lt;/SPAN&gt;&lt;SPAN&gt;xmlns:&lt;/SPAN&gt;&lt;SPAN&gt;jcr&lt;/SPAN&gt;&lt;SPAN&gt;="http://www.jcp.org/jcr/1.0"&lt;BR /&gt;&lt;/SPAN&gt;   &lt;SPAN&gt;jcr&lt;/SPAN&gt;&lt;SPAN&gt;:primaryType&lt;/SPAN&gt;&lt;SPAN&gt;="sling:OsgiConfig"&lt;BR /&gt;&lt;/SPAN&gt;   &lt;SPAN&gt;externalizer.domains&lt;/SPAN&gt;&lt;SPAN&gt;="[author http://localhost:4502,publish http://localhost:4503,website1 https://www.website1.com,website2 https://www.website2.com]"&lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 04:12:09 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/413121#M35256</guid>
      <dc:creator>Asutosh_Jena_</dc:creator>
      <dc:date>2021-06-19T04:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple domains using Externalizer</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/413122#M35257</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17430135"&gt;&lt;/LI-USER&gt;&amp;nbsp; Once you define various domains in externalizer, you would be able to refer those in the code as below:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;String myExternalizedUrl = externalizer.externalLink(resolver, Externalizer.LOCAL, "/my/page") + ".html";&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 05:34:43 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/413122#M35257</guid>
      <dc:creator>shelly-goel</dc:creator>
      <dc:date>2021-06-19T05:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple domains using Externalizer</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/461673#M35258</link>
      <description>&lt;P&gt;Do we need to add this logic to very component?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 19:13:52 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/handling-multiple-domains-using-externalizer/m-p/461673#M35258</guid>
      <dc:creator>kashlokesh27</dc:creator>
      <dc:date>2022-07-19T19:13:52Z</dc:date>
    </item>
  </channel>
</rss>

