webdav portal web.config file added to ignore

This commit is contained in:
a.skorina 2015-01-09 11:48:38 +03:00
parent ef0115a1ab
commit 2ec10f6988
4 changed files with 17 additions and 3 deletions

View file

@ -41,7 +41,8 @@ namespace WebsitePanel.WebDavPortal.Controllers
try
{
webDavManager.OpenFolder(pathPart);
IEnumerable<IHierarchyItem> children = webDavManager.GetChildren();
IEnumerable<IHierarchyItem> children = webDavManager.GetChildren().Where(x => !WebDavAppConfigManager.Instance.ElementsRendering.ElementsToIgnore.Contains(x.DisplayName.Trim('/')));
var model = new ModelForWebDav { Items = children.Take(WebDavAppConfigManager.Instance.ElementsRendering.DefaultCount), UrlSuffix = pathPart };
Session[WebDavAppConfigManager.Instance.SessionKeys.ResourseRenderCount] = WebDavAppConfigManager.Instance.ElementsRendering.DefaultCount;