Using Kentico 11.0.26 with MVC. I'm trying to follow this link to insert a YouTube video on a content-only page.
After inserting the widget and configuring the URL - when I try to preview it in Kentico, the rendered page does not show the video but some code instead (video URL modified for privacy):
If you're displaying this in a transformation of say a repeater, you will need to add this in your transformation to properly process the widget data:
<%# CMS.MacroEngine.MacroResolver.Resolve(Eval<string>("ColumnName")) %>
This is for a MVC website. Haven't come across anything called transformation so far. Just content only page.
Portal Engine widgets are not supported for MVC sites- you will need to display your YouTube video some other way. You can still store some reference to the video in your rich text field, but you will need to write some code that will generate the necessary output in your MVC application. If you decide to upgrade to Kentico 12, this could be made easier by creating a custom MVC widget: https://docs.kentico.com/k12/developing-websites/page-builder-development/developing-widgets-in-mvc.
Please, sign in to be able to submit a new answer.