【问题标题】:how add image in RecentBlogPost widget, Orchard CMS如何在RecentBlogPost 小部件、Orchard CMS 中添加图像
【发布时间】:2014-12-11 14:17:59
【问题描述】:

在博客文章内容类型中,我有名为“BlogPostImage”的媒体库选择器字段。在placement.info 我添加:<Match ContentType="BlogPost"> <Match DisplayType="Summary"> <Place Fields_MediaLibraryPicker="Content:1"/> </Match> </Match>

所以图片显示在摘要页面中,我想在最近的博客小部件中显示相同的图片。怎么做?

【问题讨论】:

标签: image orchardcms blogs


【解决方案1】:

您必须覆盖形状模板。 在views\Parts.Blogs.RecentBlogPosts.cshtml

查看此主题的示例:https://bitbucket.org/psenechal/pjs.bootstrap 在 views\Content-BlogPost.Summary.cshtml 中使用了一个名为 BlogPostImage 的 MediaPickerField

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多