I have a control that retrieves a list of icontent from the news module. it then uses the first item in the IList array to populate content on the page. however, if the list is empty, this first item is null, so the page breaks.
what I would like to do is create a dummy icontent with "not found" type responses, such as:
newsItem = mgr.Content.CreateContent(
newsItem.Url = "/news.aspx";
newsItem.SetMetaData("Title", "View All News");
so that if the list is empty, the control will populate with an appropriate message. However, is this going to clutter the database with staged content that never gets used? is there another way to instantiate IContent without calling CreateContent()?