Ejemplo n.º 1
0
        private void ImportCategory(ImportPageModel model)
        {
            // import the category
            int startingCategoryId    = model.CategoryId;
            int startingContentNodeId = model.ParentNodeId;

            UCategoryService.ProcessCategory(startingContentNodeId, startingCategoryId, model.DeepImport, true, model.Test3Only);
        }
Ejemplo n.º 2
0
        public ActionResult ImportPageView()
        {
            var             current = Umbraco.TypedContent(UmbracoContext.PageId);
            var             home    = current.AncestorOrSelf(1);
            ImportPageModel model   = new ImportPageModel();

            model.ContentNodes = new SelectList(home.Descendants("ProductListing"), "Id", "Name");
            model.CategoryId   = 12;
            model.Categories   = UCategoryService.GetCategoryListItems();
            //model.ContentNodes = GetNodes("ProductListing");

            return(this.PartialView("~/Views/Partials/ImportPageView.cshtml", model));
        }