Sitecore:其他数据库中的参考项(源字段)

Tim*_*mon 0 c# sitecore

我正在使用Sitecore 8 Update 2.我已经在用户配置文件中添加了额外的字段,并且有一些静态项目,我想用它来填充下拉列表字段.

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

有没有办法将物品送到源场?

Mar*_*idy 5

您可以在字段中定义"数据库".像这样:

databasename=web&datasource=/sitecore/content/Meta Content/Lookup Lists/Countries
Run Code Online (Sandbox Code Playgroud)

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