// // GET: /AdminContent/FileManager/ public ActionResult Index() { string path = Request.QueryString["path"] ?? string.Empty; string cleanPath = DiskStorage.FileManagerCleanPath(path); FileManagerViewModel model = new FileManagerViewModel(cleanPath); model.Directories = DiskStorage.FileManagerListDirectories(MTApp.CurrentStore.Id, cleanPath); model.Files = DiskStorage.FileManagerListFiles(MTApp.CurrentStore.Id, cleanPath); model.BreadCrumbs = BuildBreadCrumbs(cleanPath); model.BasePreviewUrl = "~/images/sites/" + MTApp.CurrentStore.Id + "/"; return(View(model)); }
// // GET: /AdminContent/FileManager/ public ActionResult Index() { var path = Request.QueryString["path"] ?? string.Empty; var cleanPath = DiskStorage.FileManagerCleanPath(path); var model = new FileManagerViewModel(cleanPath) { Directories = DiskStorage.FileManagerListDirectories(HccApp.CurrentStore.Id, cleanPath), Files = DiskStorage.FileManagerListFiles(HccApp.CurrentStore.Id, cleanPath), BreadCrumbs = BuildBreadCrumbs(cleanPath), BasePreviewUrl = DiskStorage.GetStoreDataPhysicalPath(HccApp.CurrentStore.Id) }; return(View(model)); }
// // GET: /AdminContent/FileManager/ public ActionResult Index() { string path = Request.QueryString["path"] ?? string.Empty; string cleanPath = DiskStorage.FileManagerCleanPath(path); FileManagerViewModel model = new FileManagerViewModel(cleanPath); model.Directories = DiskStorage.FileManagerListDirectories(MTApp.CurrentStore.Id, cleanPath); model.Files = DiskStorage.FileManagerListFiles(MTApp.CurrentStore.Id, cleanPath); model.BasePreviewUrl = "~/images/sites/" + MTApp.CurrentStore.Id + "/"; var breadRender = new code.TemplateEngine.TagHandlers.BreadCrumbs(); ViewBag.BreadCrumbsFinal = breadRender.Render(MTApp, BuildBreadCrumbs(cleanPath)); return(View(model)); }