More in this section

Forums / Developing with Sitefinity / Custom pages in SiteMap get indexed?

Custom pages in SiteMap get indexed?

2 posts, 0 answered
  1. Shawn
    Shawn avatar
    10 posts
    Registered:
    09 Jan 2009
    19 Feb 2009
    Link to this post
    Hey guys, I have an easy one for you.

    We have use a custom SiteMapProvider on our site which inserts several dynamic pages into the site map.  I was hoping the Search Indexer would see these pages in the Site Map and index them, but it does not seem to do that. 

    So, my question is:  Does the standard Sitefinity page indexer use SiteMap to find it's pages or the Sitefinity Pages collection?

    Thanks!
    --Shawn
  2. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    20 Feb 2009
    Link to this post
    Hi Shawn,

    Thank you for contacting us.

    The Sitefinity's page indexer indexes starting from selected root page down the tree. It do not use the SiteMap, but rather the page hierarchy from the database.

    But you can still index the additional pages:
    1. Add the attached file CustomPageIndexProcider.cs to your App_Code folder.
    You can see an example how to index additional pages in the file CustomPageIndexProcider.cs. You need to supply the page url and indexer will index the added page.

    2. Change this line in your site's web.config file.
    before:
    <indexClients>   
    <add name="PageIndex" 
     type="Telerik.Cms.Search.CustomPageIndexProvider, Telerik.Cms" 
     settingsControl="Telerik.Cms.Web.UI.PageIndexSettings, Telerik.Cms" 
     viewSettingsControl="Telerik.Cms.Web.UI.SearchViewControl, Telerik.Cms" 
     description="Provides indexing services for CMS Pages."/>  
    </indexClients> 
     


    after:
    <indexClients>   
    <add name="PageIndex"   
     type="Telerik.Cms.Search.CustomPageIndexProvider, App_Code" 
     settingsControl="Telerik.Cms.Web.UI.PageIndexSettings, Telerik.Cms" 
     viewSettingsControl="Telerik.Cms.Web.UI.SearchViewControl, Telerik.Cms" 
     description="Provides indexing services for CMS Pages."/>  
    </indexClients> 


    Hope this information will helps you.

    Regards,
    Parvan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered