Exemplo n.º 1
0
        public static string GetCurrentDemoPageTitle()
        {
            var builder = new StringBuilder();

            if (CurrentDemo is IntroPageModel)
            {
                builder.Append(CurrentDemo.SeoTitle);
            }
            else
            {
                if (CurrentDemo is DemoPageModel)
                {
                    var product   = DemosModel.Current.GetSeoTitle();
                    var demoGroup = ((DemoPageModel)CurrentDemo).Group;
                    var group     = demoGroup != null ? demoGroup.SeoTitle : null;

                    builder.Append(CurrentDemo.GetSeoTitle());
                    builder.Append(" - ");
                    builder.Append(string.IsNullOrEmpty(group) ? product : group);
                    builder.Append(" Demo");
                }
            }
            builder.Append(" | DevExpress");
            return(builder.ToString());
        }
Exemplo n.º 2
0
        public static string GetCurrentDemoPageTitle()
        {
            StringBuilder builder = new StringBuilder();

            if (CurrentDemo.IsErrorPage)
            {
                builder.Append("Error Page - ");
                builder.Append(DemosModel.Current.GetSeoTitle());
                if (!DemosModel.Current.IsRootDemo)
                {
                    builder.Append(" Demo");
                }
            }
            else if (CurrentDemo is IntroPageModel)
            {
                builder.Append(CurrentDemo.SeoTitle);
            }
            else if (CurrentDemo is DemoPageModel)
            {
                string         product   = DemosModel.Current.GetSeoTitle();
                DemoGroupModel demoGroup = ((DemoPageModel)CurrentDemo).Group;
                string         group     = demoGroup != null ? demoGroup.SeoTitle : null;
                builder.Append(CurrentDemo.GetSeoTitle());
                builder.Append(" - ");
                builder.Append(string.IsNullOrEmpty(group) ? product : group);
                builder.Append(" Demo");
            }
            builder.Append(" | DevExpress");
            return(builder.ToString());
        }
Exemplo n.º 3
0
        public static string GetCurrentDemoPageTitle()
        {
            StringBuilder builder = new StringBuilder();

            builder.Append(CurrentDemo.GetSeoTitle());
            string group = CurrentDemo.Group.SeoTitle;

            if (!string.IsNullOrEmpty(group))
            {
                builder.Append(" - ");
                builder.Append(group);
            }
            builder.Append(" - ");
            builder.Append(DemosModel.Current.GetSeoTitle());
            return(builder.ToString());
        }
Exemplo n.º 4
0
 public static string GetCurrentDemoTitle()
 {
     return(CurrentDemo.GetSeoTitle() + " | DevExpress Bootstrap Controls for ASP.NET");
 }