API
Version 7.x > API > Inline widgets won't render for Search Results View modes: 
User avatar
Kentico MVP
Kentico MVP
tfayas-avastonetech - 11/1/2013 9:57:33 AM
   
Inline widgets won't render for Search Results
Howdy all, i'm running into a little snag.

I created a custom doc type and put in a HTML editable region into the form fields. I then created a Title-Content widget so they can add various sections to a page by adding the widgets into the editable region (so formatting isn't messed up).

However, it seems for the site search, the Inline-widgets don't render so i can't pull them in for teaser copy. For example, i put in the Content Area on the form:

<the widget> Hello World!

The resulting teaser copy from it are just "Hello World!" Without the content from the widget.

Anyway to have the inline-widgets render in the search results?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/8/2013 2:15:07 AM
   
RE:Inline widgets won't render for Search Results
Hello,

This approach is not officially supported. you can try using ControlsHelper.ResolveDynamicControls in the transformation or, resolve the dynamic controls insode a script tag in the transformation.
Similar to resolving dynamic controls on ASPX pages: Resolving inline controls
I hope it will help.

Best regards,
Juraj Ondrus