Exemple #1
0
        public static string GetObjectFullUrl(WebSite website, Guid ObjectId)
        {
            string baseurl   = website.BaseUrl();
            string objectUrl = website.SiteDb().Routes.GetObjectPrimaryRelativeUrl(ObjectId);

            if (!string.IsNullOrEmpty(objectUrl))
            {
                objectUrl = Kooboo.Lib.Helper.UrlHelper.Combine(baseurl, objectUrl);
            }
            return(objectUrl);
        }
Exemple #2
0
        private string GetDummary(WebSite site)
        {
            string body = @"<!DOCTYPE html>
<html lang=""en"">
<head><meta charset=""utf-8""><meta http-equiv=""X-UA-Compatible"" content=""IE=edge,chrome=1""><meta name=""viewport"" content=""width=device-width,initial-scale=1,maximum-scale=1, user-scalable=no"">
         </head>
         <body> <div k-placeholder=""Main"" ></div>
          </body>
          </html>";

            body = body.Replace("<head>", $"<head><base href=\"{site.BaseUrl()}\"/>");
            return(body);
        }