#66807Fill if.value with content object
Description
Hey,
I hope I posted this issue in the right section.
I need to fill the value of an if condition with the value of a content object:
# Creating a comma-separated list
lib.blubb = CONTENT
lib.blubb {
table = sys_category
select {
pidInList = root
selectFields = uid,uid_local
join = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid
where = sys_category_record_mm.uid_foreign = 6
}
#where = sys_category.uid = sys_category_record_mm.uid_foreign
renderObj = TEXT
renderObj.field = uid_local
renderObj.wrap = |,
}
The value of the object defined in the TS above should be filled in the if.value in the TS below:
# Dynamically create the option tags for a multi select box
options_multiple_researchprojects = CONTENT
options_multiple_researchprojects {
table = sys_category
select {
pidInList = root
orderBy = title
selectFields = title, uid
}
renderObj = COA
renderObj {
#value
10.wrap = <option value="|"
10 = TEXT
10.field = uid
#selected
20 = TEXT
20.noTrimWrap = | >|
20.noTrimWrap {
override = | selected>|
override.if {
# DOESN'T WORK!
value < lib.blubb
isInList.field = uid
}
}
#label
30 = TEXT
30.wrap = |</option>
30.field = title
}
}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.