【问题标题】:Sitecore: reference item in other database ( source field )Sitecore:其他数据库中的参考项目(源字段)
【发布时间】:2015-06-17 12:18:17
【问题描述】:

我正在使用 Sitecore 8 Update 2。 我在用户个人资料中添加了额外的字段,并有一些我想用来填充下拉列表字段的静态项目。

但是,用户配置文件的模板位于核心数据库中,而我想用来填充下拉列表字段的项目位于主/网络数据库中。

有没有办法将项目的源字段?

【问题讨论】:

    标签: c# sitecore


    【解决方案1】:

    您可以在您的领域中定义“数据库”。像这样:

    databasename=web&datasource=/sitecore/content/Meta Content/Lookup Lists/Countries
    

    另请参阅:https://sitecorecontextitem.wordpress.com/2014/02/10/working-with-custom-user-profile-fields-in-sitecore/

    【讨论】:

      猜你喜欢
      • 2023-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-02
      • 2018-04-24
      • 1970-01-01
      • 1970-01-01
      • 2021-02-09
      相关资源
      最近更新 更多