private void createPage(String title, PageCategory category, Boolean isFooter)
        {
            Page page = new Page();

            page.Creator    = new User(1);
            page.OwnerType  = typeof(Site).FullName;
            page.OwnerUrl   = "/";
            page.Title      = title;
            page.Content    = title;
            page.Category   = category;
            page.EditReason = "创建页面";

            pageService.Insert(page);

            // FooterMenu
            if (isFooter == false)
            {
                return;
            }

            FooterMenu fm = new FooterMenu();

            fm.Name = page.Name;
            fm.Link = to(new Common.PageController().Show, page.Id);
            fm.insert();
        }
        public void Create()
        {
            FooterMenu data = validate(new FooterMenu());

            if (ctx.HasErrors)
            {
                run(Add);
                return;
            }

            data.insert();
            log(SiteLogString.AddFooterMenu(), data);

            echoToParentPart(lang("opok"));
        }