Copied to clipboard

Flag this post as spam?

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


  • Urvish 252 posts 776 karma points
    May 26, 2015 @ 14:07
    Urvish
    0

    Displays nothing on page

    Hi,

    I am working in Umbraco 7.2.4 website.

    I have installed razor edition of the Cultive Search Engine Sitemap.

    Also create a document type and assign CultivSearchEngineSitemap temaplate to it and make a node using this doc type.

    But when I request url it displays nothing.

    Any help would be appreciate.

    Thanks in advance.

    Regards,

    Urvish Mandaliya

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    May 26, 2015 @ 14:12
    Dennis Aaen
    0

    Hi Urvish,

    Try to open up the scripting file for the CultivSearchEngineSitemap. Then you need to change a line from

    if (node.Level <= maxLevelForSiteMap && node.ChildrenAsList.Count > 0)
    

    To

    if (node.Level <= maxLevelForSiteMap && node.ChildrenAsList.Count() > 0)
    

    Hope this helps,

    /Dennis

  • Urvish 252 posts 776 karma points
    May 26, 2015 @ 14:19
    Urvish
    0

    Hi Dennis,

    Thanks for the reply.

    I have changed the line in scripting file for the CultivSearchEngineSitemap.

    But still not getting anything on the page. Page Source is blank.

    Regards,

    Urvish Mandaliya

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    May 26, 2015 @ 14:31
    Dennis Aaen
    0

    Hi Urvish,

    I totally forgot that the scripting folder is gone from Umbraco 7.2 I have just tried the XSLT version of the package and it works very fine on Umbraco 7.2.5.

    When you have installed the XLST version of the package you should be able to see the XML sitemap at this url http://www.domain.com//CultivSearchEngineSitemap

    Hope this helps,

    /Dennis

  • Urvish 252 posts 776 karma points
    May 26, 2015 @ 14:34
    Urvish
    0

    ok Dennis.

    Let me try with the XSLT version.

  • Urvish 252 posts 776 karma points
    May 26, 2015 @ 14:41
    Urvish
    0

    Dennis,

    Installed xslt version.

    But not getting output yet.

    Can you please guide me with steps that what you did after installing package.

    Thanks.

    Regards,

    Urvish Mandaliya

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    May 26, 2015 @ 14:59
    Dennis Aaen
    0

    Hi Urvish,

    Okay I will try to guide you.

    1. Make sure that there is a XSLT file in the folder.

    2. Go to the settings section -- > templates. In this folder you should see a template called CultivSearchEngineSitemap this template should contain the following code like below,

    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server"><?xml version='1.0' encoding='UTF-8'?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
        <umbraco:Macro Alias="CultivSearchEngineSitemap" runat="server"></umbraco:Macro>
    </urlset>
    </asp:Content>

    3. The you should be able to see the XML sitemap on this url http://www.domain.com/CultivSearchEngineSitemap

    Hope this helps,

    /Dennis

  • Urvish 252 posts 776 karma points
    May 26, 2015 @ 15:05
    Urvish
    0

    Hi Dennis,

    Thanks for the reply.

    I did the same.

    But got nothing.

    I think in this xslt version it is creting masterpage. But here the DefaultRenderEngine is MVC.

    So this might be the reason that nothing is displaying.

    What you say?

    Regards,

    Urvish Mandaliya

  • Urvish 252 posts 776 karma points
    May 27, 2015 @ 10:31
    Urvish
    100

    I got the solution.

    I have removed the Macro and pasted the code from below in Template directly.

    https://gist.github.com/alindgren/1439022194a472d83ddf

    It worked like a charm.

    Any one wants to implement sitemap in site then they can use above code. It will work.

    Thanks.

    Regards,

    Urvish Mandaliya

Please Sign in or register to post replies

Write your reply to:

Draft