Beispiel #1
0
        public static void ExportSiteToSiteTemplate(SiteInfo siteInfo, string siteTemplateDir, string adminName)
        {
            var exportObject = new ExportObject(siteInfo.Id, adminName);

            var siteTemplatePath = PathUtility.GetSiteTemplatesPath(siteTemplateDir);

            //导出模板
            var templateFilePath = PathUtility.GetSiteTemplateMetadataPath(siteTemplatePath, DirectoryUtils.SiteTemplates.FileTemplate);

            exportObject.ExportTemplates(templateFilePath);
            //导出辅助表及样式
            var tableDirectoryPath = PathUtility.GetSiteTemplateMetadataPath(siteTemplatePath, DirectoryUtils.SiteTemplates.Table);

            exportObject.ExportTablesAndStyles(tableDirectoryPath);
            //导出站点属性以及站点属性表单
            var configurationFilePath = PathUtility.GetSiteTemplateMetadataPath(siteTemplatePath, DirectoryUtils.SiteTemplates.FileConfiguration);

            exportObject.ExportConfiguration(configurationFilePath);
            //导出关联字段
            var relatedFieldDirectoryPath = PathUtility.GetSiteTemplateMetadataPath(siteTemplatePath, DirectoryUtils.SiteTemplates.RelatedField);

            exportObject.ExportRelatedField(relatedFieldDirectoryPath);
        }
Beispiel #2
0
        private string ExportRelatedField(int relatedFieldId)
        {
            var exportObject = new ExportObject(SiteId, AuthRequest.AdminName);

            return(exportObject.ExportRelatedField(relatedFieldId));
        }
        private string ExportRelatedField(int relatedFieldId)
        {
            var exportObject = new ExportObject(SiteId);

            return(exportObject.ExportRelatedField(relatedFieldId));
        }
Beispiel #4
0
        private string ExportRelatedField(int relatedFieldId)
        {
            var exportObject = new ExportObject(PublishmentSystemId);

            return(exportObject.ExportRelatedField(relatedFieldId));
        }