+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Sitefinity 3.7 Search PageIndex bug with HTML5

Sitefinity 3.7 Search PageIndex bug with HTML5

3 posts, 0 answered
  1. Michael Diolosa
    Michael Diolosa avatar
    11 posts
    Registered:
    29 Jul 2009
    12 Nov 2010
    Link to this post
    I've been wracking my brain on a bug I've been dealing with for the past couple of days in a Sitefinity project.  I was having problems getting the PageIndex to actually index any content on my project, but unfortunately only 2 to 3 words were being indexed on each page.

    I found another post talking about this and what was discussed was problems with the HTML.  What I found was in an HTML 5 based template the <!DOCTYPE html> breaks the indexing service.  I assume this is an underlying problem with ASP.NET 3.5.  I fixed this problem by conditionally inserting the doctype into my masterpages:

    <% if (!Telerik.CmsContext.IsRequestCrawler(this.Context)) { %><!DOCTYPE html><% } %>

    Hope this helps someone else!

    --mike
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    12 Nov 2010
    Link to this post
    Hello Michael Diolosa,

    Thank you for sharing your solution. I am sure it will come in handy for our community members. I have updated your Telerik points.

    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Jay
    Jay avatar
    51 posts
    Registered:
    16 Jul 2008
    14 Jan 2011
    Link to this post
    Awesome!  Great tip... just saved me a bunch of time.  Thanks!
Register for webinar
3 posts, 0 answered