Kentico获取页面类型字段/下拉列表/组件的当前URL

时间:2017-05-23 03:44:16

标签: url macros kentico

我正在尝试创建动态页面类型字段,它应该能够访问正确的“设置”文件夹以根据根(财务或采购)捕获数据项:

enter image description here

enter image description here

假设在财务下使用的网页类型,该字段应转到'财务 /设置/(无论如何)'。

我所做的是'硬编码'路径: enter image description here

enter image description here

我尝试过CurrentDocument.DocumentAliasPath,GetDocumentUrl()等等,它在下拉列表中没有显示任何内容。

有没有办法直接获取“Root(财务或采购)”或间接获取(从URL切入,或使用GUID获取URL)?

谢谢!

1 个答案:

答案 0 :(得分:1)

在页面类型字段中,您可以使用df = spark.read.csv("myFile.csv") # By default, quote char is " and separator is ',' 对象获取当前页面及其属性。因此,您可以使用以下属性来获取当前节点名称enter image description here