在 TEXT.value 中插入使用 HMENU 创建的逗号分隔列表
Insert comma separated list created with HMENU in TEXT.value
我想在 TEXT 项的值处插入用 HMENU 创建的逗号分隔列表。如果我手动填写列表,一切正常,但我无法从创建的 hmenu 中填写我的值:
temp.pageIds = HMENU
temp.pageIds.entryLevel = 2
temp.pageIds.1 = TMENU
temp.pageIds.1 {
NO.stdWrap.field = uid
NO.allWrap = |,
NO.doNotLinkIt = 1
}
#output temp.pageIds for example 13,53,12,34,
temp.orderedContent = TEXT
temp.orderedContent {
value < temp.pageIds # <------ not working (value = 23,25,57,... working)
split {
token = ,
cObjNum = 1
1 = COA
1 {
10 = CONTENT
10 {
table = tt_content
select {
pidInList.current = 1
where = colPos = 0
}
}
}
}
}
有什么想法吗?
TEXT
对象的 value
属性 将不会被解释。如果您只是复制 temp.pageIds
-对象,它将只是文字字符串 HMENU
(并具有一些子属性),而不是页面 ID 列表。
要对其进行评估,请注意 the docs that the type of value
is of type string/stdWrap
, so the value will be filtered through the stdWrap
-function. stdWrap has the property cObject
,它可用于解释内容对象。
所以这应该有效:
value.cObject < temp.pageIds
我想在 TEXT 项的值处插入用 HMENU 创建的逗号分隔列表。如果我手动填写列表,一切正常,但我无法从创建的 hmenu 中填写我的值:
temp.pageIds = HMENU
temp.pageIds.entryLevel = 2
temp.pageIds.1 = TMENU
temp.pageIds.1 {
NO.stdWrap.field = uid
NO.allWrap = |,
NO.doNotLinkIt = 1
}
#output temp.pageIds for example 13,53,12,34,
temp.orderedContent = TEXT
temp.orderedContent {
value < temp.pageIds # <------ not working (value = 23,25,57,... working)
split {
token = ,
cObjNum = 1
1 = COA
1 {
10 = CONTENT
10 {
table = tt_content
select {
pidInList.current = 1
where = colPos = 0
}
}
}
}
}
有什么想法吗?
TEXT
对象的 value
属性 将不会被解释。如果您只是复制 temp.pageIds
-对象,它将只是文字字符串 HMENU
(并具有一些子属性),而不是页面 ID 列表。
要对其进行评估,请注意 the docs that the type of value
is of type string/stdWrap
, so the value will be filtered through the stdWrap
-function. stdWrap has the property cObject
,它可用于解释内容对象。
所以这应该有效:
value.cObject < temp.pageIds