Exemplo n.º 1
0
 public string getchildfolders(long folderid)
 {
     System.Text.StringBuilder sb = new System.Text.StringBuilder();
     Ektron.Cms.ContentAPI capi = new Ektron.Cms.ContentAPI();
     Ektron.Cms.FolderData[] folders = capi.GetChildFolders(folderid, true, Ektron.Cms.Common.EkEnumeration.FolderOrderBy.Name);
     Ektron.Cms.PageBuilder.WireframeModel wfm = new WireframeModel();
     if (folders != null && folders.Length > 0)
     {
         foreach (FolderData folder in folders)
         {
             Ektron.Cms.PageBuilder.WireframeData[] wireframes = wfm.FindByFolderID(folder.Id);
             sb.Append("<li class=\"");
             if (folder.HasChildren) sb.Append("ui-finder-folder");
             if (wireframes.Length > 0) sb.Append(" hasWireframe");
             sb.Append("\"><a href=\"");
             sb.Append(capi.AppPath + "/PageBuilder/Wizards/folderbrowser/folderbrowserCB.ashx?folderid=");
             sb.Append(folder.Id);
             sb.Append("\">");
             sb.Append(folder.Name);
             sb.Append("</a></li>");
         }
     }
     return sb.ToString();
 }
Exemplo n.º 2
0
 private void CheckFolders(long FolderID)
 {
     Ektron.Cms.ContentAPI contentApi = new Ektron.Cms.ContentAPI();
     CheckForMasterLayout(FolderID);
     Ektron.Cms.FolderData[] folderData = contentApi.GetChildFolders(FolderID, true, Ektron.Cms.Common.EkEnumeration.FolderOrderBy.Id);
     if ((folderData != null) && folderData.Length > 0)
     {
         int i = 0;
         for (i = 0; i <= folderData.Length - 1; i++)
         {
             CheckFolders(folderData[i].Id);
         }
     }
 }