{"id":48,"date":"2011-10-10T15:04:00","date_gmt":"2011-10-10T15:04:00","guid":{"rendered":"https:\/\/wdev-blog.azurewebsites.net\/index.php\/2011\/10\/10\/show-items-structure-in-sitecore\/"},"modified":"2011-10-10T15:04:00","modified_gmt":"2011-10-10T15:04:00","slug":"show-items-structure-in-sitecore","status":"publish","type":"post","link":"http:\/\/panahy.nl\/index.php\/2011\/10\/10\/show-items-structure-in-sitecore\/","title":{"rendered":"Show Items structure in Sitecore"},"content":{"rendered":"<div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">The following example demonstrates how to get the information about a node on the back side of a node by giving  the item.ID. You also could do it easier by having the full path instead of creating an ID.<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">It is important to do all this inside a SecurityDisabler. You might have some nodes that are not accessible to  anonymous user, if the code is running for without proper security. <o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">protected<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">void<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;StartToAnalyse(<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">object<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;sender,&nbsp;<\/span><span lang=\"EN-US\" style=\"color: #2b91af; font-family: Consolas; font-size: 10pt;\">EventArgs<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;e)<\/span><span style=\"font-family: Consolas; font-size: 13px;\">&nbsp; &nbsp; {<\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sitecore.Data.<\/span><span lang=\"EN-US\" style=\"color: #2b91af; font-family: Consolas; font-size: 10pt;\">Database<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;master&nbsp;=<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sitecore.Configuration.<\/span><span lang=\"EN-US\" style=\"color: #2b91af; font-family: Consolas; font-size: 10pt;\">Factory<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">.GetDatabase(<\/span><span lang=\"EN-US\" style=\"color: #a31515; font-family: Consolas; font-size: 10pt;\">&#8220;master&#8221;<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">);<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">using<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;(<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">new<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;Sitecore.SecurityModel.<\/span><span lang=\"EN-US\" style=\"color: #2b91af; font-family: Consolas; font-size: 10pt;\">SecurityDisabler<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">())<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ProcessItem(master.GetItem(<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">new<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;Sitecore.Data.<\/span><span lang=\"EN-US\" style=\"color: #2b91af; font-family: Consolas; font-size: 10pt;\">ID<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">(textboxRoot.Text)));<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;}<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\"><o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">private<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">void<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;ShowTechnicalDetails(Sitecore.Data.Items.<\/span><span lang=\"EN-US\" style=\"color: #2b91af; font-family: Consolas; font-size: 10pt;\">Item<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;item)<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;{<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">string<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;pageName&nbsp;=&nbsp;item.DisplayName;<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">var<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;template&nbsp;=&nbsp;item.Template;<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: green; font-family: Consolas; font-size: 10pt;\">\/\/LogLine(&#8221;&nbsp;Template&nbsp;:&nbsp;&#8221;&nbsp;+&nbsp;item.TemplateName);<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\"><o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: green; font-family: Consolas; font-size: 10pt;\">\/\/&nbsp;LogLine(&#8221;&nbsp;Uri&nbsp;:&nbsp;&#8221;&nbsp;+&nbsp;item.Uri.Path);<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\"><o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: green; font-family: Consolas; font-size: 10pt;\">\/\/&nbsp;string&nbsp;rend&nbsp;=&nbsp;Sitecore.Context.Item.Fields[&#8220;Renderings&#8221;].Value;<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\"><o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sitecore.Data.Items.<\/span><span lang=\"EN-US\" style=\"color: #2b91af; font-family: Consolas; font-size: 10pt;\">DeviceItem<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;defDevice&nbsp;=&nbsp;Sitecore.Data.Items.<\/span><span lang=\"EN-US\" style=\"color: #2b91af; font-family: Consolas; font-size: 10pt;\">DeviceItem<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">.ResolveDevice(Sitecore.Configuration.<\/span><span lang=\"EN-US\" style=\"color: #2b91af; font-family: Consolas; font-size: 10pt;\">Factory<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">.GetDatabase(<\/span><span lang=\"EN-US\" style=\"color: #a31515; font-family: Consolas; font-size: 10pt;\">&#8220;master&#8221;<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">));<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">var<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;layout&nbsp;=&nbsp;item.Visualization.GetLayout(defDevice);<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">if<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;(layout&nbsp;!=&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">null<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">)<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LogLine(<\/span><span lang=\"EN-US\" style=\"color: #a31515; font-family: Consolas; font-size: 10pt;\">&#8221;&nbsp;Layout&nbsp;:&nbsp;&lt;u&gt;&nbsp;[&#8220;<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;+&nbsp;layout.DisplayName&nbsp;+&nbsp;<\/span><span lang=\"EN-US\" style=\"color: #a31515; font-family: Consolas; font-size: 10pt;\">&#8220;]&lt;\/u&gt;&#8221;<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;);<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: green; font-family: Consolas; font-size: 10pt;\">\/\/&nbsp;&nbsp;&nbsp;\/\/&nbsp;&nbsp;LogLine(&#8221;&nbsp;File&nbsp;:&nbsp;&#8221;&nbsp;+&nbsp;layout.FilePath);<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\"><o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">var<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;renderings&nbsp;=&nbsp;item.Visualization.GetRenderings(defDevice,&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">false<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">);<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: green; font-family: Consolas; font-size: 10pt;\">\/\/LogLine(&#8220;Renderings:&lt;ul&gt;&#8221;);<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\"><o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">foreach<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">(<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">var<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;rend&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">in<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;renderings)<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: green; font-family: Consolas; font-size: 10pt;\">\/\/LogLine(&#8221;&nbsp;Layout&nbsp;:&nbsp;&#8221;&nbsp;+&nbsp;rend.RenderingItem.DisplayName);<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\"><o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LogItem(pageName&nbsp;+&nbsp;<\/span><span lang=\"EN-US\" style=\"color: #a31515; font-family: Consolas; font-size: 10pt;\">&#8220;;&#8221;<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;+&nbsp;rend.RenderingItem.InnerItem[<\/span><span lang=\"EN-US\" style=\"color: #a31515; font-family: Consolas; font-size: 10pt;\">&#8220;Path&#8221;<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">]);<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;}<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">private<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">void<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;ProcessItem(Sitecore.Data.Items.<\/span><span lang=\"EN-US\" style=\"color: #2b91af; font-family: Consolas; font-size: 10pt;\">Item<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;item)<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;{<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">if<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;(item&nbsp;==&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">null<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">)<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LogLine(<\/span><span lang=\"EN-US\" style=\"color: #a31515; font-family: Consolas; font-size: 10pt;\">&#8220;Item&nbsp;not&nbsp;found.&#8221;<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">);<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">return<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">;<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ShowTechnicalDetails(item);<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">foreach<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;(Sitecore.Data.Items.<\/span><span lang=\"EN-US\" style=\"color: #2b91af; font-family: Consolas; font-size: 10pt;\">Item<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;child&nbsp;<\/span><span lang=\"EN-US\" style=\"color: blue; font-family: Consolas; font-size: 10pt;\">in<\/span><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;item.Children)<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span lang=\"EN-US\" style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: black; font-family: Consolas; font-size: 10pt;\">{<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ProcessItem(child);<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp;&nbsp;&nbsp;&nbsp;}<o:p><\/o:p><\/span><\/div>\n<div style=\"background: white;\"><span style=\"color: black; font-family: Consolas; font-size: 10pt;\">&nbsp; &nbsp;&nbsp;<\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The following example demonstrates how to get the information about a node on the back side of a node by giving the item.ID. You also could do it easier by having the full path instead of creating an ID. It is important to do all this inside a SecurityDisabler. You might have some nodes that &hellip; <a href=\"http:\/\/panahy.nl\/index.php\/2011\/10\/10\/show-items-structure-in-sitecore\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Show Items structure in Sitecore&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[40],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"Pouya Panahy","author_link":"http:\/\/panahy.nl\/index.php\/author\/pouya\/"},"uagb_comment_info":0,"uagb_excerpt":"The following example demonstrates how to get the information about a node on the back side of a node by giving the item.ID. You also could do it easier by having the full path instead of creating an ID. It is important to do all this inside a SecurityDisabler. You might have some nodes that&hellip;","_links":{"self":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/48"}],"collection":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":0,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"wp:attachment":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}