Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Srinivasan 7 posts 77 karma points
    1 week ago

    Cultiv Search Engine Sitemap

    I installed the Cultiv Search Engine. I added the

    Sitemap: http://localhost:62062/sitemap.aspx
    link in robots.txt Its generated template and macro.but no document type.

    I dont know what i do the next step?


    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
            Layout = null;
            Response.ContentType = "text/xml";
        <urlset xmlns="" xmlns:xsi="" xsi:schemaLocation="">

    sitemap.cshtml (macro)

    @using Umbraco.Core.Models
    @using Umbraco.Web
    @inherits Umbraco.Web.Macros.PartialViewMacroPage
    @helper ListChildNodes(IPublishedContent startNode)
        const int maxLevelForSiteMap = 100;
        foreach (var node in startNode.Children.Where(x => Umbraco.MemberHasAccess(x.Id, x.Path)).Where(x => !Umbraco.IsProtected(x.Id, x.Path)).Where(x => x.IsVisible()))
            if (node.TemplateId > 0)
                    <lastmod>@(string.Format("{0:s}+00:00", node.UpdateDate))</lastmod>
                        var freq = node.GetPropertyValue<string>("SearchEngineSitemapChangeFreq");
                        var pri = node.GetPropertyValue<string>("SearchEngineSitemapPriority");
                    @if (!string.IsNullOrEmpty(freq))
                    @if (!string.IsNullOrEmpty(pri))
            if (node.Level <= maxLevelForSiteMap && node.Children.Any())

    enter image description here

Please Sign in or register to post replies

Write your reply to: