Tree in list

        private void Getafdelingen(string rootpath)
        {
            Sitecore.Data.Database db = Sitecore.Configuration.Factory.GetDatabase("master");
            //// Item root = db.GetItem(@"/sitecore/content/Intranet/Home/Organisatie");
            Item root = db.GetItem(rootpath);
            foreach (Sitecore.Data.Items.Item desc in root.Axes.GetDescendants())
            {
                if (desc.HasChildren)
                {
                    this.Getafdelingen(desc.Paths.Path.ToString());
                    //eFocusIntranet.LogUtil.Error("dit is het niewe pad:" + desc.Paths.Path.ToString());
                }
                else
                {
                    this.afdelingen.Add(desc);
                    //eFocusIntranet.LogUtil.Error("afdeling gevonden:" + desc.Name);
                }
            }
        }

{{opmerking.Naam}}:

{{opmerking.OpmerkingText}}

            

Saving your comment....

Naam is verplicht!
Email is verplicht!
Opmerking is verplicht!