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

Forums / General Discussions / Exclude image titles/alt tags in "static HTML in pages" search indexes?

Exclude image titles/alt tags in "static HTML in pages" search indexes?

2 posts, 0 answered
  1. Anita
    Anita avatar
    9 posts
    Registered:
    11 May 2015
    15 Jun 2015
    Link to this post

    We have a search index that searches through "Static HTML in pages" but it's catching images as results. (The search result shows up as a link to the image.) We surmise it's because it's capturing the title and/or alt tags in those images, which appear in the HTML, of course.

     Is there a way to exclude the HTML in image tags?

  2. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    Registered:
    04 Jan 2016
    18 Jun 2015
    Link to this post
    Hello,

    You can use the approach described in this article: Hiding Page Content From The Search Engine In Sitefinity Using Layout Widgets. You can place the image widgets in this non searchable layout and the html will not be rendered when the page is processed in memory for indexing, essentially leaving out anything that you placed in this layout.

    Regards,
    Atanas Valchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered