public ActionResult IconAndTitleList()
        {
            /* Populate with: Children of Datasource OR Children of Current */
            IEnumerable <SimpleItem> items = new SimpleItem(DataSourceItemOrCurrentItem).ChildrenInCurrentLanguage;

            return(!items.IsNullOrEmpty() ? View(items) : ShowListIsEmptyPageEditorAlert());
        }
        public ActionResult DatasourceList()
        {
            /* make sure the datasource or current has children in the current language and render accordingly */
            IEnumerable <SimpleItem> items   = new SimpleItem(DataSourceItemOrCurrentItem).ChildrenInCurrentLanguage;
            SimpleItemList           results = new SimpleItemList(DataSourceItem["Menu Title"], items);

            return(!items.IsNullOrEmpty() ? View(results) : ShowListIsEmptyPageEditorAlert());
        }
        public ActionResult TeamList()
        {
            /* Populate with: Children of Datasource OR Children of Current */
            Item team = SiteConfiguration.GetTeamItem();

            if (team != null && team.Template.Key == "team section")
            {
                IEnumerable <SimpleItem> items = new SimpleItem(DataSourceItemOrCurrentItem).ChildrenInCurrentLanguage;
                return(!items.IsNullOrEmpty() ? View(items) : null);
            }
            return(null);
        }