Blocks inside XhtmlString field

Vote:
 

Hi,

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?

EPiServer 9.2.1

EPiServer.Find 10.1.0.3493

Thanks!

#140754
Oct 29, 2015 10:58
Vote:
 

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 indexed
Actual result: Block content is indexed

Step 2.
Editor makes some changes in shared block from step 1 and clicks the block publish button
Expected result: All pages containing that shared blocks should be re-indexed
Actual result: Search index contains old data

I guess we can attach to IContentEvents.PublishedContent event and re-indexed all affected pages using ContentSoftLinkRepository.

#143990
Feb 04, 2016 11:19
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.