public static List<TeamMentor_Article> getGuidanceItems_from_LibraryFolderOrView(this TM_Xml_Database tmDatabase, Guid id)
{
if (tmDatabase.tmLibrary(id).notNull()) // first search on the library
return tmDatabase.tmGuidanceItems(id);
if (tmDatabase.tmFolder(id).notNull()) // the on the folders
return tmDatabase.xmlDB_GuidanceItems(tmDatabase.tmFolder(id));
if (tmDatabase.tmView(id).notNull()) // then on the views
return tmDatabase.xmlDB_GuidanceItems(tmDatabase.tmView(id).guidanceItems);
return null;
}