I am trying to index rendered content. I am using the following plugin.

It works with a global data source, however, it does not index rendered content if the data source is local (local:/Data/Rich Text). I traced down the piece of code that is failing. When Sitecore retrieves the Item's renderings via the Visualization.GetRenderings it returns an empty string in the DataSource property of the result.

Is this a known issue? Also, am I doing this right? Meaning is there a better way to index data connected to a page via a rendering data source?

Some more context:

When I step through the code I can see the DataSource is an empty string:

Empty Data Source showing it not working

However, I do see the data source on the item:

Local data source image

Here it is coming through with the id when I use a direct link:

Direct link showing it working

  • 1
    @markcassidy While this issue was discovered using the Sitecore.IndexRenderedContent Plugin I believe this issue will occur whenever you attempt to use Sitecore.Data.Items.Item.Visualization.GetRenderings(DeviceItem device) method. – Nikola Kramaric Jul 12 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.