有没有办法在 Umbraco 7.3 后台动态生成下拉选项?

Is there a way to dynamically generate dropdownoptions in Umbraco 7.3 backoffice?

我有一个文件夹结构,看起来有点像这样(方括号中的DocumentType):

Municipality [Landingpage]
    |_Areas [Area]
    |_Plot [Plot]
    |_Subdivision [Zoning]
    |  |_Ballig, Falkevej [Zone]
    |  |_Durup, Torpager [Zone]
    |  |_...
    |  |_Vinkel, Vinkelpletvej [Zone]
    |_Properties [Properties]
       |_Private Homes [Types]
       |_Coporate Buildings [Types]
       |_Other Buildinglots [Types]

在每个 [区域] 中,我希望有一个名为“类型”的下拉列表。该类型应该是与 [Properties] [Types] 之一的名称相匹配的值。

视觉示例(逗号分隔 = 下拉列表中的新选项):

您可以试试 nuPickers (https://our.umbraco.com/packages/backoffice-extensions/nupickers/) - there's an XML data source that let's you do Xpath for content (https://github.com/uComponents/nuPickers/wiki/Data-Source-Xml)。

您可以将“Options Xpath”设置为“//Types”之类的内容,以便在下拉列表中获取所有类型为“Types”的文档。我想(有一段时间没用过nuPickers了)。