コード例 #1
0
        private void Configure(Template template)
        {
            string path = Server.MapPath(UrlUtil.Combine(template.VirtualPath, "config.config"));
            if (File.Exists(path))
            {
                var xml = XDocument.Load(path).Root;
                var displayName = xml.ChildElementValue("display-name");

                if (!String.IsNullOrEmpty(displayName))
                {
                    template.SetDisplayName(new LocalizableText(displayName));
                }
            }
        }