volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Blocks inside XhtmlString field

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

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
error 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.