<?xml-stylesheet type="text/xsl" href="https://uat.community.rws.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Inspect the DXA Localization object</title><link>/product-groups/tridion/tridion-sites/b/techweblog/posts/inspect-the-dxa-localization-object</link><description>Sometimes you just want to look under the hood and see what DXA is doing. Here is a tool to inspect the Localization object for DXA .NET. This also gives insight in all the published resources and configuration parameters. I use this when I have to use</description><dc:language>en-US</dc:language><generator>Telligent Community 12 Non-Production</generator><item><title>RE: Inspect the DXA Localization object</title><link>https://uat.community.rws.com/product-groups/tridion/tridion-sites/b/techweblog/posts/inspect-the-dxa-localization-object</link><pubDate>Sat, 06 May 2017 10:18:58 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:86b3124a-976a-455f-8d16-ec9b35df7d2b</guid><dc:creator>Jan Horsman</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;@Alvin: Yes, &lt;a href="http://localhost/" target="_blank" rel="nofollow"&gt;http://localhost/&lt;/a&gt; is mapped to publication 51. &lt;a href="http://localhost/demo" target="_blank" rel="nofollow"&gt;http://localhost/demo&lt;/a&gt; is mapped to publication 58.&lt;/p&gt;
&lt;p&gt;The &lt;span style="font-family:courier new,courier;"&gt;Localization&lt;/span&gt; object contains a property &lt;span style="font-family:courier new,courier;"&gt;SiteLocalizations&lt;/span&gt; which has all the other related publications. This tools shows the &lt;span style="font-family:courier new,courier;"&gt;Localization&lt;/span&gt; object and all it&amp;#39;s properties, including the &lt;span style="font-family:courier new,courier;"&gt;Localization.SiteLocalizations&lt;/span&gt;. It&amp;#39;s this class &lt;span style="font-family:courier new,courier;"&gt;&lt;a href="https://github.com/sdl/dxa-web-application-dotnet/blob/release/1.7/Sdl.Web.Common/Configuration/Localization.cs)."&gt;Sdl.Web.Common.Configuration.Localization&lt;/a&gt;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;You do not get all DXA publications in &lt;span style="font-family:courier new,courier;"&gt;Localization.SiteLocalizations&lt;/span&gt;, but only the related ones. The DXA Publication Medatada schema has a field &amp;quot;&lt;em&gt;Site Identifier - used to group publications together to define a single website&lt;/em&gt;&amp;quot;. In this case publicatin 51 and 58 have the same Site Identifier, but the same CD evironments has a couple of other DXA sites with other Site Identifiers as well.&lt;/p&gt;&lt;img src="https://uat.community.rws.com/aggbug?PostID=6645&amp;AppID=95&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Inspect the DXA Localization object</title><link>https://uat.community.rws.com/product-groups/tridion/tridion-sites/b/techweblog/posts/inspect-the-dxa-localization-object</link><pubDate>Tue, 02 May 2017 16:59:35 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:86b3124a-976a-455f-8d16-ec9b35df7d2b</guid><dc:creator>Alvin Reyes</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Automated documentation and system awareness are always nice. So in your example, localhost is pointing to a specific Publication (51, in the screenshot)?&lt;/p&gt;
&lt;p&gt;But you also get the site localizations for all of the DXA publications as well?&lt;/p&gt;
&lt;img src="https://uat.community.rws.com/aggbug?PostID=6645&amp;AppID=95&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>