We have shared blocks that can be d&d into ContentArea and XhtmlString fields.
[IndexInContentAreas] attribute works fine for content areas but is there something similar for XhtmlString fields?
For future reference: http://world.episerver.com/blogs/Per-Magne-Skuseth/Dates/2016/1/episerver-find-index-blocks-in-xhtmlstring/
Thank you and thanks to Per Magne:)
It works great except in one scenario.
Step 1.Editor creates a page in EPi, d&d shared block to XhtmlString field, and clicks the page publish button.Expected result: Block content is indexedActual result: Block content is indexed
Step 2.Editor makes some changes in shared block from step 1 and clicks the block publish buttonExpected result: All pages containing that shared blocks should be re-indexedActual result: Search index contains old data
I guess we can attach to IContentEvents.PublishedContent event and re-indexed all affected pages using ContentSoftLinkRepository.