﻿@model StaticWidget

<div class="rich-text @Model.HtmlClasses" @Html.DxaEntityMarkup()>

    @if (Model.TridionDocsItems != null)
    {
        foreach (TridionDocsItem item in Model.TridionDocsItems)
        {
            if (Model.DisplayContentAs.ToLower() == "embedded content")
            {
                <div class="content">
                    <div @Html.DxaPropertyMarkup(() => Model.TridionDocsItems)>
                        @Html.Raw(@item.Body)
                    </div>
                </div>
                <br />
            }
            else
            {
                <div @Html.DxaPropertyMarkup(() => Model.TridionDocsItems)>
                    <a href="@item.Link">@item.Title</a>
                </div>
                <br />
            }
        }
    }

</div>
﻿@model StaticWidget

<div class="rich-text @Model.HtmlClasses" @Html.DxaEntityMarkup()>

    @if (Model.TridionDocsItems != null && Model.TridionDocsItems.Any())
    {
        foreach (TridionDocsItem item in Model.TridionDocsItems)
        {
            if (Model.DisplayContentAs.ToLower() == "embedded content")
            {
                <div class="content">
                    <div @Html.DxaPropertyMarkup(() => Model.TridionDocsItems)>
                        @Html.Raw(@item.Body)
                    </div>
                </div>
                <br />
            }
            else
            {
                <div @Html.DxaPropertyMarkup(() => Model.TridionDocsItems)>
                    <a href="@item.Link">@item.Title</a>
                </div>
                <br />
            }
        }
    }
    else
    {
        <span>&nbsp;</span>
    }

</div>
Enable the content type to be editable when there is no result appearing based on the chosen keywords
Enable the content type to be editable when there is no result appearing based on the chosen keywords
