1

我创建了一个包含图像字段和文本字段(用于链接目标)的小型横幅小部件。ImageField 部分在管理视图中完美呈现,但文本字段永远不会呈现......

难道我做错了什么?

public int UpdateFrom5()
{
    ContentDefinitionManager.AlterPartDefinition("PartnerBannerLong", part => part
        .WithField("Image", field => field
            .OfType("ImageField")
            .WithSetting("ImageFieldSettings.Width", "728")
            .WithSetting("ImageFieldSettings.Height", "90")
            .WithSetting("ImageFieldSettings.ResizeAction", "Validate")
        )
        .WithField("LinkTarget", field => field
            .OfType("TextField")
            .WithDisplayName("Link Target")
        )
    );

    return 6;
}
4

0 回答 0