【问题标题】:How to restrict a sitecore droptree field to accept only media folder item and not allow media items如何限制 sitecore droptree 字段仅接受媒体文件夹项目而不允许媒体项目
【发布时间】:2017-12-29 00:07:54
【问题描述】:

我正在尝试使用 droptree 字段来允许内容编辑器从项目树中选择一个文件夹项目。在这里,我必须将 droptree 字段限制为仅接受媒体文件夹项目,并且它不应允许图像和视频等媒体项目。我已将源设置为数据源:

DataSource=/sitecore/media library/User Submitted Media&ExcludeTemplatesForSelection=Jpeg,Image

上述数据源不工作。我仍然可以选择媒体项目和媒体文件夹。我使用的 Sitecore 版本是 7.2。我错过了什么吗?

【问题讨论】:

  • 尝试“ExcludeTemplatesForDisplay”而不是“ExcludeTemplatesForSelection”。
  • @AlekseyShevchenko 我试过 ExcludeTemplatesForDisplay 但它不起作用

标签: sitecore sitecore7.2


【解决方案1】:

您不能将 Include/Exclude TemplatesForDisplay/Selection 与 DropTree 一起使用。看到这个stackoverflow answer

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多