Beispiel #1
0
        } // RenderParameters

        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/FileLibrary/FileLibraryCategory.js"));

            // -- database tables
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `filelibraryaggregator2` (
                  `SimpleFileAggregatorId` int(10) unsigned NOT NULL AUTO_INCREMENT,
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `LangCode` varchar(5) NOT NULL,
                  `LinkedPageId` int(11) NOT NULL,
                  `LinkedIdentifier` int(11) NOT NULL,
                  `LinkedLangCode` varchar(5) NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`SimpleFileAggregatorId`),
                  KEY `simplefileaggregatorPageIndex` (`PageId`,`Identifier`,`LangCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));

            ret.AddRange(base.getDependencies());

            return(ret.ToArray());
        }
Beispiel #2
0
        public CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();
            string cssUrl            = CmsConfig.getConfigValue("cssUrl", "").Replace("~", "");

            if (cssUrl != "")
            {
                ret.Add(CmsFileDependency.UnderAppPath(cssUrl));
            }

            bool printerVer = CmsConfig.getConfigValue("PrinterAndPdfVer.printerVer", false);

            ret.Add(new CmsConfigItemDependency("PrinterAndPdfVer.printerVer"));
            if (printerVer)
            {
                ret.Add(new CmsConfigItemDependency("PrinterAndPdfVer.printerCss"));

                string printcssUrl = CmsConfig.getConfigValue("PrinterAndPdfVer.printerCss", "").Replace("~", "");
                if (printcssUrl != "")
                {
                    ret.Add(CmsFileDependency.UnderAppPath(printcssUrl));
                }
            }

            return(ret.ToArray());
        }
Beispiel #3
0
 public override CmsDependency[] getDependencies()
 {
     return(new CmsDependency[] {
         CmsFileDependency.UnderAppPath("js/_system/GlossaryEditor.js", new DateTime(2010, 4, 22)),
         CmsFileDependency.UnderAppPath("js/_system/json2.js"),
         CmsWritableDirectoryDependency.UnderAppPath("_system/writable/Glossary"),
         new CmsDatabaseTableDependency(@"
             CREATE TABLE  `glossary` (
               `glossaryid` int(10) unsigned NOT NULL AUTO_INCREMENT,
               `pageid` int(10) unsigned NOT NULL,
               `identifier` int(10) unsigned NOT NULL,
               `langShortCode` varchar(255) NOT NULL,
               `sortOrder` varchar(255) NOT NULL,
               `ViewMode` varchar(255) NOT NULL,
               `deleted` datetime DEFAULT NULL,
               PRIMARY KEY (`glossaryid`)
             ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
         "),
         new CmsDatabaseTableDependency(@"
             CREATE TABLE  `glossarydata` (
               `GlossaryDataId` int(10) unsigned NOT NULL AUTO_INCREMENT,
               `phGlossaryId` int(10) unsigned NOT NULL,
               `isAcronym` int(10) unsigned NOT NULL,
               `word` varchar(255) NOT NULL,
               `description` text NOT NULL,
               `deleted` datetime DEFAULT NULL,
               PRIMARY KEY (`GlossaryDataId`)
             ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
         ")
     });
 }
Beispiel #4
0
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/JobDatabase/JobLocation.js"));
            return(ret.ToArray());
        }
        public CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("images/_system/arrowRight_white.png", new DateTime(2011, 3, 1)));
            return(ret.ToArray());
        }
Beispiel #6
0
        public CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            bool printerVer = CmsConfig.getConfigValue("PrinterAndPdfVer.printerVer", false);
            bool pdfVer     = CmsConfig.getConfigValue("PrinterAndPdfVer.pdfVer", false);

            ret.Add(new CmsConfigItemDependency("PrinterAndPdfVer.pdfVer"));
            if (pdfVer)
            {
                ret.Add(new CmsConfigItemDependency("PrinterAndPdfVer.pdfIcon"));
            }

            ret.Add(new CmsConfigItemDependency("PrinterAndPdfVer.printerVer"));
            if (printerVer)
            {
                ret.Add(new CmsConfigItemDependency("PrinterAndPdfVer.printerIcon"));
            }

            ret.Add(new CmsConfigItemDependency("PrinterAndPdfVer.placeAfterDom", CmsDependency.ExistsMode.MustNotExist));

            // this file should not exist
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/printerAndPdfVersion.js", CmsDependency.ExistsMode.MustNotExist));
            return(ret.ToArray());
        }
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            string[] removedCols = new string[] { "LocationToDisplay", "HtmlHeader" };
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `jobsummary` (
                  `JobSummaryId` int(10) unsigned NOT NULL AUTO_INCREMENT,
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `langShortCode` varchar(255) NOT NULL,
                  `locationId` int(11) NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`JobSummaryId`),
                  KEY `jobsummary_secondary` (`PageId`,`Identifier`,`Deleted`)
                ) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
                ", removedCols));

            ret.Add(new CmsConfigItemDependency("JobPosting.DetailsTemplateName", CmsDependency.ExistsMode.MustExist));
            ret.Add(new CmsConfigItemDependency("JobPosting.FullJobDescriptionText", CmsDependency.ExistsMode.MustExist));
            ret.Add(new CmsTemplateDependency(CmsConfig.getConfigValue("JobPosting.DetailsTemplateName", "_JobPosting"), "JobPosting.DetailsTemplateName configuration entry"));

            ret.Add(CmsFileDependency.UnderAppPath("images/_system/calendar/arrowRight.jpg", new DateTime(2011, 3, 1)));

            return(ret.ToArray());
        }
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/EventCalendar/EventCalendarCategory.js"));
            return(ret.ToArray());
        }
        public CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/TopNav.js"));
            return(ret.ToArray());
        }
Beispiel #10
0
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/jquery/jquery-1.4.1.min.js"));
            return(ret.ToArray());
        }
Beispiel #11
0
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/beforeUnload.js", CmsDependency.ExistsMode.MustNotExist));          // beforeUnload.js is now Embedded
            ret.Add(CmsFileDependency.UnderAppPath("controls/_system/StartEditForm.ascx", CmsDependency.ExistsMode.MustNotExist)); // this class replaces this
            return(ret.ToArray());
        }
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/sortSelectList.js", CmsDependency.ExistsMode.MustNotExist)); // now an embedded resource

            return(ret.ToArray());
        }
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            // -- database tables
            ret.Add(new CmsDatabaseTableDependency(@"
                    CREATE TABLE `registerproject` (
                      `ProjectId` int(11) NOT NULL AUTO_INCREMENT,
                      `Name` varchar(255) NOT NULL,
                      `Location` varchar(255) NOT NULL,
                      `Description` text NOT NULL,
                      `ContactPerson` varchar(255) NOT NULL,
                      `Email` varchar(255) NOT NULL,
                      `Telephone` varchar(30) NOT NULL,
                      `Cellphone` varchar(30) NOT NULL,
                      `Website` varchar(255) NOT NULL,
                      `FundingSource` varchar(255) NOT NULL,
                      `CreatedDateTime` datetime DEFAULT NULL,
                      `ClientIP` varchar(255) NOT NULL,
                      PRIMARY KEY (`ProjectId`)
                    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;"));

            // -- REQUIRED config entries
            ret.Add(new CmsConfigItemDependency("RegisterProject.NameText"));
            ret.Add(new CmsConfigItemDependency("RegisterProject.LocationText"));
            ret.Add(new CmsConfigItemDependency("RegisterProject.DescriptionText"));
            ret.Add(new CmsConfigItemDependency("RegisterProject.ContactPersonText"));
            ret.Add(new CmsConfigItemDependency("RegisterProject.EmailText"));
            ret.Add(new CmsConfigItemDependency("RegisterProject.TelephoneText"));
            ret.Add(new CmsConfigItemDependency("RegisterProject.CellphoneText"));
            ret.Add(new CmsConfigItemDependency("RegisterProject.WebsiteText"));
            ret.Add(new CmsConfigItemDependency("RegisterProject.FundingSourceText"));
            ret.Add(new CmsConfigItemDependency("RegisterProject.MandatoryText"));
            ret.Add(new CmsConfigItemDependency("RegisterProject.SaveOkText"));
            ret.Add(new CmsConfigItemDependency("RegisterProject.SaveErrorText"));

/*
 *  <!-- Register Project -->
 *  <add key="RegisterProject.NameText" value="Project name|Nome do projeto" />
 *  <add key="RegisterProject.LocationText" value="Project location|Local do Projeto" />
 *  <add key="RegisterProject.DescriptionText" value="Project description|Descrição do projeto" />
 *  <add key="RegisterProject.ContactPersonText" value="Contact person|Pessoa de contato" />
 *  <add key="RegisterProject.EmailText" value="Email|E-mail" />
 *  <add key="RegisterProject.TelephoneText" value="Telephone (Area code - Phone number - Extension)|Telefone (O código de área - número - Extensão)" />
 *  <add key="RegisterProject.CellphoneText" value="Cell phone (Area code - Phone number)|Telefone celular (O código de área - número)" />
 *  <add key="RegisterProject.WebsiteText" value="Website URL|URL do site" />
 *  <add key="RegisterProject.FundingSourceText" value="Funding source|fonte de financiamento" />
 *  <add key="RegisterProject.SubmitButtonText" value="Register your project|Cadastre seu projeto" />
 *  <add key="RegisterProject.MandatoryText" value="Mandatory input field|Obrigatório campo de entrada" />
 *  <add key="RegisterProject.SaveOkText" value="Your project is registered.  Thank you.|Seu projeto é registrado. Obrigado." />
 *  <add key="RegisterProject.SaveErrorText" value="Server error, registration failed.|Erro de servidor, registro falhou." />
 */

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/RegisterProject/RegisterProject.js", CmsDependency.ExistsMode.MustNotExist)); // now embedded.

            return(ret.ToArray());
        }
        public CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/FloatingEditMenu.js", new DateTime(2010, 5, 13)));
            ret.Add(CmsFileDependency.UnderAppPath("images/_system/hatCms_logo.png"));
            ret.AddRange(new CmsPageEditMenu.DefaultStandardActionRenderers().getDependencies());
            return(ret.ToArray());
        }
Beispiel #15
0
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/jquery/jquery-1.4.1.min.js"));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/Zone/ZoneManagement.js", CmsDependency.ExistsMode.MustNotExist)); // now an embedded resource

            return(ret.ToArray());
        }
Beispiel #16
0
        public CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("css/_system/TopMultiLevelDropDownMenu.css"));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/jquery/jquery-1.4.1.min.js"));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/TopMultiLevelDropDownMenu.js"));
            return(ret.ToArray());
        }
 public override CmsDependency[] getDependencies()
 {
     return(new CmsDependency[] {
         // -- javascript files are now embedded in this Assembly.
         CmsFileDependency.UnderAppPath("js/_system/GlossaryEditor.js", CmsDependency.ExistsMode.MustNotExist),
         CmsFileDependency.UnderAppPath("js/_system/json2.js", CmsDependency.ExistsMode.MustNotExist),
         // -- writable directories
         CmsWritableDirectoryDependency.UnderAppPath("_system/writable/Glossary")
     });
 }
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(new CmsPageDependency(CmsConfig.getConfigValue("GotoEditModePath", "/_admin/action/gotoEdit"), CmsConfig.Languages));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/jquery/jquery-1.4.1.min.js"));

            // AdminTools.css is now embedded in this project's Assembly.
            ret.Add(CmsFileDependency.UnderAppPath("css/_system/AdminTools.css", CmsDependency.ExistsMode.MustNotExist));
            return(ret.ToArray());
        }
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/FloatingEditMenu.js", CmsDependency.ExistsMode.MustNotExist));  // FloatingEditMenu.js is now embedded.
            ret.Add(CmsFileDependency.UnderAppPath("images/_system/hatCms_logo.png"));

            ret.Add(CmsFileDependency.UnderAppPath("controls/_system/FloatingEditMenu.ascx", CmsDependency.ExistsMode.MustNotExist)); // this class removes this

            ret.AddRange(new CmsPageEditMenu.DefaultStandardActionRenderers().getDependencies());
            return(ret.ToArray());
        }
Beispiel #20
0
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(new CmsDatabaseTableDependency("contacts",
                                                   new string[] { "ContactsId", "PageId", "Identifier",
                                                                  "numColumnsToShow", "nameDisplayMode", "forceFilterToCategoryId",
                                                                  "allowFilterByCategory", "allowFilterByCompany",
                                                                  "accessLevelToEditContacts", "accessLevelToAddContacts", "deleted" }));
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `contactdata` (
                  `ContactId` int(10) unsigned NOT NULL AUTO_INCREMENT,
                  `firstName` varchar(255) NOT NULL,
                  `lastName` varchar(255) NOT NULL,
                  `title` varchar(255) NOT NULL,
                  `organizationName` varchar(255) NOT NULL,
                  `address1` varchar(255) NOT NULL,
                  `address2` varchar(255) NOT NULL,
                  `city` varchar(255) NOT NULL,
                  `provinceState` varchar(255) NOT NULL,
                  `postalZipCode` varchar(255) NOT NULL,
                  `phoneNumber1` varchar(255) NOT NULL,
                  `phoneNumber2` varchar(255) NOT NULL,
                  `faxNumber` varchar(255) NOT NULL,
                  `mobileNumber` varchar(255) NOT NULL,
                  `emailAddress` varchar(255) NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`ContactId`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `contactdatacategory` (
                  `categoryid` int(11) NOT NULL AUTO_INCREMENT,
                  `colourHex` varchar(255) NOT NULL,
                  `title` varchar(1024) NOT NULL,
                  `description` varchar(1024) NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`categoryid`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `contactlinktocategory` (
                  `ContactLinkToCategoryId` int(10) unsigned NOT NULL AUTO_INCREMENT,
                  `ContactId` int(10) unsigned NOT NULL,
                  `CategoryId` int(10) unsigned NOT NULL,
                  PRIMARY KEY (`ContactLinkToCategoryId`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/jquery/jquery-1.4.1.min.js"));
            return(ret.ToArray());
        }
        /// <summary>
        /// Gets the dependencies for the SetupPage.
        /// </summary>
        /// <returns></returns>
        public CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("css/_system/Setup.css"));
            ret.Add(new CmsTemplateDependency(RedirectTemplateName));
            ret.Add(new CmsTemplateDependency("_login"));
            ret.Add(new CmsTemplateDependency("_gotoEditMode"));
            ret.Add(new CmsTemplateDependency("_gotoViewMode"));
            ret.Add(new CmsTemplateDependency("_CreateNewPagePopup"));

            return(ret.ToArray());
        }
Beispiel #22
0
        public CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            // check if calendarpage param ##RenderControl(_system/SimpleCalendar calendarPage="...")## is defined

            //@@TODO: check to ensure that the target calendarPage is actually a good page.

            ret.Add(new CmsControlParameterDependency(this, new string[] { "calendarpage" }));
            ret.Add(CmsFileDependency.UnderAppPath("css/_system/simpleCalendar.css"));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/jquery.simpleCalendar/simpleCalendar.min.js"));

            return(ret.ToArray());
        }
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            // -- Database tables:
            string[] colsToRemove = new string[] { "Title", "Location", "HtmlJobDescription", "LastUpdatedDateTime" };
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `jobdetails` (
                  `JobId` int(10) unsigned NOT NULL AUTO_INCREMENT,
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `langShortCode` varchar(255) NOT NULL,
                  `JobLocationId` int(10) NOT NULL,
                  `RemoveAnonAccessAt` datetime NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`JobId`),
                  KEY `JobDetailsIndex` (`PageId`,`Identifier`,`langShortCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
                ", colsToRemove));

            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `joblocations` (
                  `JobLocationId` int(10) unsigned NOT NULL AUTO_INCREMENT,
                  `LocationText` text NOT NULL,
                  `IsAllLocations` int(10) unsigned NOT NULL DEFAULT '0',
                  `SortOrdinal` int(10) unsigned NOT NULL DEFAULT '0',
                  PRIMARY KEY (`JobLocationId`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
                "));

            // Config entries:
            ret.Add(new CmsConfigItemDependency("JobPostingDetails.AllowPostingToAllLocations", CmsDependency.ExistsMode.MustExist));
            ret.Add(new CmsConfigItemDependency("JobPostingDetails.IncludeLocationInDisplay", CmsDependency.ExistsMode.MustExist));
            ret.Add(new CmsConfigItemDependency("JobPostingDetails.IncludeBackLinkInDisplay", CmsDependency.ExistsMode.MustExist));
            ret.Add(new CmsConfigItemDependency("JobPostingDetails.BackToJobListingText", CmsDependency.ExistsMode.MustExist));
            ret.Add(new CmsConfigItemDependency("JobPostingDetails.LocationText", CmsDependency.ExistsMode.MustExist));

            // -- category edit page
            ret.Add(new CmsPageDependency("_admin/JobLocation", CmsConfig.Languages));

            // -- obsolete config entries:
            ret.Add(new CmsConfigItemDependency("JobPostingLocations", CmsDependency.ExistsMode.MustNotExist));
            ret.Add(new CmsConfigItemDependency("DeleteJobPath", CmsDependency.ExistsMode.MustNotExist));

            ret.Add(CmsFileDependency.UnderAppPath("images/_system/calendar/arrowLeft.jpg", new DateTime(2011, 3, 1)));
            return(ret.ToArray());
        }
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("_system/tools/FlashObject/PopupFlashObjectBrowser.aspx"));
            ret.Add(CmsWritableDirectoryDependency.UnderAppPath("UserFiles/Flash"));
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `flashobject` (
                  `FlashObjectId` int(10) unsigned NOT NULL AUTO_INCREMENT,
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `SWFPath` varchar(255) NOT NULL DEFAULT '',
                  `DisplayWidth` int(11) NOT NULL,
                  `DisplayHeight` int(11) NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`FlashObjectId`),
                  KEY `flashobject_secondary` (`PageId`,`Identifier`,`Deleted`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));
            return(ret.ToArray());
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            // -- CKEditor dependencies
            ret.AddRange(CKEditorHelpers.CKEditorDependencies);

            // -- database tables
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE `NewsArticleAggregator` (
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `LangCode` varchar(2) NOT NULL,
                  `DefaultYearToDisplay` int(11) NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`PageId`,`Identifier`,`LangCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;"));

            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE `NewsArticleDetails` (
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `LangCode` varchar(2) NOT NULL,
                  `DateOfNews` datetime DEFAULT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`PageId`,`Identifier`,`LangCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;"));

            // -- REQUIRED config entries
            ret.Add(new CmsConfigItemDependency("NewsArticle.ReadArticleText"));
            ret.Add(new CmsConfigItemDependency("NewsArticle.NoNewsText"));
            ret.Add(new CmsConfigItemDependency("NewsArticle.NoNewsTextForText"));

            // -- template dependency
            ret.Add(new CmsTemplateDependency(CmsConfig.getConfigValue("NewsArticle.DetailsTemplateName", "_NewsArticleDetails")));

            ret.Add(CmsFileDependency.UnderAppPath("images/_system/calendar/arrowRight.jpg", new DateTime(2011, 3, 1)));

            return(ret.ToArray());
        }
        public CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            // -- database tables
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE `NewsArticleAggregator` (
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `LangCode` varchar(2) NOT NULL,
                  `DefaultYearToDisplay` int(11) NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`PageId`,`Identifier`,`LangCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE `NewsArticleDetails` (
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `LangCode` varchar(2) NOT NULL,
                  `DateOfNews` datetime DEFAULT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`PageId`,`Identifier`,`LangCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));

            // -- REQUIRED config entries
            ret.Add(new CmsConfigItemDependency("MostRecentNews.Count"));
            ret.Add(new CmsConfigItemDependency("MostRecentNews.Image"));
            ret.Add(new CmsConfigItemDependency("MostRecentNews.TitleText"));
            ret.Add(new CmsConfigItemDependency("MostRecentNews.NoNewsText"));

            ret.Add(CmsFileDependency.UnderAppPath("images/_system/calendar/arrowRight.jpg", new DateTime(2011, 3, 1)));

            return(ret.ToArray());
        }
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("images/_system/calendar/calendarIcon_16x16.png"));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/DatePicker.js"));

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/jquery.fullcalendar/fullcalendar.css", new DateTime(2011, 3, 19)));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/jquery/jquery-1.4.1.min.js"));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/jquery.fullcalendar/fullcalendar.min.js", new DateTime(2011, 3, 19)));


            ret.Add(new CmsPageDependency(CmsConfig.getConfigValue("EditCalendarCategoryPagePath", "/_admin/EventCalendarCategory"), CmsConfig.Languages));
            ret.Add(new CmsControlDependency("EventCalendarCategoryPopup"));

            // -- Hatfield modified version of jquery.fullcalendar -- SimpleCalendar
            ret.Add(CmsFileDependency.UnderAppPath("_system/tools/Calendar/SimpleCalendarJsonData.ashx"));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/EventCalendar/EventCalendarCategory.js"));

            // -- iCal output
            ret.Add(CmsFileDependency.UnderAppPath("_system/tools/Calendar/CalendarICalData.ashx"));

            // -- Date/Time picker and jQuery UI
            ret.Add(CmsFileDependency.UnderAppPath("css/_system/jquery-ui-lightness/jquery-ui-1.8.custom.css"));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/jquery/jquery-ui-1.8.custom.min.js"));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/jquery/jquery-ui-timepicker-addon.min.js"));

            // -- database tables
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE `EventCalendarAggregator` (
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `LangCode` varchar(2) NOT NULL,
                  `ViewMode` varchar(50) NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`PageId`,`Identifier`,`LangCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE `eventcalendardetails` (
                  `PageId` int(11) NOT NULL,
                  `Identifier` int(11) NOT NULL,
                  `LangCode` varchar(2) NOT NULL,
                  `Description` text NOT NULL,
                  `CategoryId` int(11) NOT NULL,
                  `StartDateTime` datetime NOT NULL,
                  `EndDateTime` datetime NOT NULL,
                  `CreatedBy` varchar(255) NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`PageId`,`Identifier`,`LangCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `eventcalendarcategory` (
                  `CategoryId` int(11) NOT NULL,
                  `LangCode` varchar(2) NOT NULL,
                  `ColorHex` varchar(7) NOT NULL,
                  `Title` varchar(255) NOT NULL,
                  `Description` text NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`CategoryId`,`LangCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));

            // note: calendareventcategory table is deprecated.

            // -- REQUIRED config entries
            ret.Add(new CmsConfigItemDependency("EventCalendar.DefaultEventStartHour"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.DefaultEventEndHour"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.ButtonTodayText"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.ButtonMonthText"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.ButtonWeekText"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.ButtonDayText"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.AllDayText"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.BackToText"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.DescriptionText"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.CategoryText"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.StartDateTimeText"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.EndDateTimeText"));
            ret.Add(new CmsConfigItemDependency("EventCalendar.CategoryColor"));

            return(ret.ToArray());
        }
Beispiel #28
0
        public override CmsDependency[] getDependencies()
        {
            string showLargerPagePath = CmsConfig.getConfigValue("SingleImage.FullSizeDisplayPath", "/_internal/showImage");

            List <CmsDependency> ret = new List <CmsDependency>();

            // -- writable directories
            ret.Add(CmsWritableDirectoryDependency.UnderAppPath("UserFiles/Image"));
            ret.Add(CmsWritableDirectoryDependency.UnderAppPath("_system/writable/ThumbnailCache"));

            // -- helpers
            ret.Add(CmsFileDependency.UnderAppPath("_system/tools/SingleImage/SingleImageEditor.aspx", new DateTime(2010, 4, 30)));
            ret.Add(CmsFileDependency.UnderAppPath("_system/tools/FCKHelpers/InlineImageBrowser2.aspx"));

            // -- pages
            ret.Add(new CmsPageDependency(showLargerPagePath, CmsConfig.Languages));

            // -- database tables
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `singleimage` (
                  `SingleImageId` int(10) unsigned NOT NULL AUTO_INCREMENT,
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `langShortCode` varchar(255) NOT NULL DEFAULT '',
                  `RevisionNumber` int(11) NOT NULL DEFAULT '1',
                  `ImagePath` varchar(255) NOT NULL,
                  `ThumbnailDisplayBoxWidth` int(11) NOT NULL DEFAULT '-1',
                  `ThumbnailDisplayBoxHeight` int(11) NOT NULL DEFAULT '-1',
                  `FullSizeDisplayBoxWidth` int(11) NOT NULL DEFAULT '-1',
                  `FullSizeDisplayBoxHeight` int(11) NOT NULL DEFAULT '-1',
                  `Caption` varchar(255) NOT NULL,
                  `Credits` varchar(255) NOT NULL,
                  `Tags` varchar(255) NOT NULL DEFAULT '',
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`SingleImageId`),
                  KEY `singleimage_secondary` (`PageId`,`Identifier`,`Deleted`,`langShortCode`) USING BTREE
                ) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
            "));

            // -- REQUIRED config entries
            ret.Add(new CmsConfigItemDependency("SingleImage.WithLinkTemplate"));
            ret.Add(new CmsConfigItemDependency("SingleImage.WithoutLinkTemplate"));

            ret.Add(new CmsConfigItemDependency("SingleImage.FullSizeDisplayPath"));
            ret.Add(new CmsConfigItemDependency("SingleImage.FullSizeDisplayWidth"));
            ret.Add(new CmsConfigItemDependency("SingleImage.FullSizeDisplayHeight"));

            ret.Add(new CmsConfigItemDependency("SingleImage.CreditsPromptPrefix")); // multilingual
            ret.Add(new CmsConfigItemDependency("SingleImage.ClickToEnlargeText"));  // multilingual
            ret.Add(new CmsConfigItemDependency("SingleImage.Tags"));
            ret.Add(new CmsConfigItemDependency("SingleImage.WithLinkTemplate"));
            ret.Add(new CmsConfigItemDependency("SingleImage.WithoutLinkTemplate"));
            ret.Add(new CmsConfigItemDependency("SingleImage.PopupPaddingWidth"));
            ret.Add(new CmsConfigItemDependency("SingleImage.PopupPaddingHeight"));
            ret.Add(new CmsConfigItemDependency("SingleImage.PopupMaxWidth"));
            ret.Add(new CmsConfigItemDependency("SingleImage.PopupMaxHeight"));
            ret.Add(new CmsConfigItemDependency("SingleImage.PopupMinWidth"));
            ret.Add(new CmsConfigItemDependency("SingleImage.PopupMinHeight"));

            // -- REMOVED config entries
            //          thumbnail size is always set in the template
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceholderDefaultThumbBoxWidth", CmsDependency.ExistsMode.MustNotExist));
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceholderDefaultThumbBoxHeight", CmsDependency.ExistsMode.MustNotExist));
            //          full display size is set by SingleImage.FullSizeDisplayWidth
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceholderDefaultFullSizeBoxWidth", CmsDependency.ExistsMode.MustNotExist));
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceholderDefaultFullSizeBoxHeight", CmsDependency.ExistsMode.MustNotExist));

            //          useSubModal and useMultibox now handled using display templates (ThumbDisplayTemplate and FullDisplayTemplate)
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceHolderUseSubModal", CmsDependency.ExistsMode.MustNotExist));
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceHolderUseMultibox", CmsDependency.ExistsMode.MustNotExist));

            //          SingleImageDisplayPath is now SingleImage.FullSizeDisplayPath
            ret.Add(new CmsConfigItemDependency("SingleImageDisplayPath", CmsDependency.ExistsMode.MustNotExist));

            //          SingleImagePlaceHolderCreditsPrefix is now SingleImage.CreditsPromptPrefix
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceHolderCreditsPrefix", CmsDependency.ExistsMode.MustNotExist));
            //          SingleImagePlaceHolderClickToEnlargeText is now SingleImage.ClickToEnlargeText
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceHolderClickToEnlargeText", CmsDependency.ExistsMode.MustNotExist));

            //          SingleImagePlaceHolderPopupPaddingWidth is now SingleImage.PopupPaddingWidth
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceHolderPopupPaddingWidth", CmsDependency.ExistsMode.MustNotExist));
            //          SingleImagePlaceHolderPopupPaddingHeight is now SingleImage.PopupPaddingHeight
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceHolderPopupPaddingHeight", CmsDependency.ExistsMode.MustNotExist));
            //          SingleImagePlaceHolderPopupMaxWidth is now SingleImage.PopupMaxWidth
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceHolderPopupMaxWidth", CmsDependency.ExistsMode.MustNotExist));
            //          SingleImagePlaceHolderPopupMaxWidth is now SingleImage.PopupMaxWidth
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceHolderPopupMaxHeight", CmsDependency.ExistsMode.MustNotExist));
            //          SingleImagePlaceHolderPopupMinHeight is now SingleImage.PopupMinHeight
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceHolderPopupMinHeight", CmsDependency.ExistsMode.MustNotExist));
            ret.Add(new CmsConfigItemDependency("SingleImagePlaceHolderPopupMinWidth", CmsDependency.ExistsMode.MustNotExist));

            return(ret.ToArray());
        }
        /// <summary>
        /// Get the dependencies for FileLibrary
        /// </summary>
        /// <returns></returns>
        public override CmsDependency[] getDependencies()
        {
            List <CmsDependency> ret = new List <CmsDependency>();

            ret.Add(CmsFileDependency.UnderAppPath("images/_system/calendar/arrowLeft.jpg", new DateTime(2011, 3, 1)));
            ret.Add(CmsFileDependency.UnderAppPath("images/_system/arrowDown.jpg", new DateTime(2011, 3, 1)));

            ret.Add(CmsFileDependency.UnderAppPath("js/_system/FileLibrary/FileLibrary.js"));
            ret.Add(CmsFileDependency.UnderAppPath("js/_system/FileLibrary/FileLibraryCategory.js"));
            ret.Add(new CmsPageDependency(CmsConfig.getConfigValue("DeleteFileLibraryPath", "/_admin/actions/deleteFileLibrary"), CmsConfig.Languages));

            // -- database tables
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE `FileLibraryAggregator` (
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `LangCode` varchar(5) NOT NULL,
                  `NumFilesOverview` int(11) NOT NULL,
                  `NumFilesPerPage` int(11) NOT NULL,
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`PageId`,`Identifier`,`LangCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `filelibrarydetails` (
                  `PageId` int(10) unsigned NOT NULL,
                  `Identifier` int(10) unsigned NOT NULL,
                  `LangCode` varchar(5) NOT NULL,
                  `Filename` varchar(255) NOT NULL,
                  `CategoryId` int(11) NOT NULL,
                  `Author` varchar(255) NOT NULL DEFAULT '',
                  `Description` text NOT NULL,
                  `LastModified` datetime NOT NULL,
                  `CreatedBy` varchar(255) NOT NULL,
                  `EventPageId` int(11) NOT NULL DEFAULT '-1',
                  `Deleted` datetime DEFAULT NULL,
                  PRIMARY KEY (`PageId`,`Identifier`,`LangCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));
            ret.Add(new CmsDatabaseTableDependency(@"
                CREATE TABLE  `filelibrarycategory` (
                  `CategoryId` int(11) NOT NULL,
                  `LangCode` varchar(5) NOT NULL,
                  `EventRequired` int(1) NOT NULL DEFAULT '0',
                  `CategoryName` varchar(255) NOT NULL,
                  `SortOrdinal` int(11) NOT NULL DEFAULT '0',
                  PRIMARY KEY (`CategoryId`,`LangCode`)
                ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
            "));

            // -- REQUIRED config entries
            ret.Add(new CmsConfigItemDependency("FileLibrary.DetailsTemplateName"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.NumEventsInList"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.OverviewText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.NewUploadText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.CategoryText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.FileNameText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.AttachedEventText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.AttachToEventText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.FileText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.SeeFileDetailsText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.BackToText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.TabText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.DownloadText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.LinkOpensNewWindowText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.AuthorText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.DocumentAbstractText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.UploadedByText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.LastUpdatedText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.ImagePreviewText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.EditText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.DateTimeText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.EventCategoryText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.DescriptionText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.AddFileText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.MaxFileSizeText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.UploadButtonText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.EventNotAttachedText"));
            ret.Add(new CmsConfigItemDependency("FileLibrary.PageText"));

            // make sure that all files associated with FileLibraryDetails placeholder are live.
            Dictionary <CmsPage, CmsPlaceholderDefinition[]> phDefsDict = CmsContext.getAllPlaceholderDefinitions("FileLibraryDetails", CmsContext.HomePage, CmsContext.PageGatheringMode.FullRecursion);

            foreach (CmsPage page in phDefsDict.Keys)
            {
                foreach (CmsPlaceholderDefinition phDef in phDefsDict[page])
                {
                    foreach (CmsLanguage lang in CmsConfig.Languages)
                    {
                        FileLibraryDetailsData fileData = db.fetchDetailsData(page, phDef.Identifier, lang, true);
                        if (fileData.FileName != "")
                        {
                            string filenameOnDisk = FileLibraryDetailsData.getTargetNameOnDisk(page, phDef.Identifier, lang, fileData.FileName);
                            ret.Add(new CmsFileDependency(filenameOnDisk));
                            if (fileData.EventPageId >= 0) // make sure that the linked event page exists.
                            {
                                ret.Add(new CmsPageDependency(fileData.EventPageId, new CmsLanguage[] { lang }));
                            }
                        }
                    } // foreach lang
                }     // foreach placeholder definition
            }         // foreach page

            return(ret.ToArray());
        }