Actions
Story #66807
closedFill if.value with content object
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2015-05-05
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Sprint Focus:
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 } }
Updated by Anja Leichsenring over 9 years ago
- Sprint Focus set to Stabilization Sprint
Updated by Markus Klein over 9 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
6.2.13) - Sprint Focus deleted (
Stabilization Sprint)
IMO your TS is wrong. The value
property of if
is of type value / stdWrap
. Hence you can't assign it a cObject.
Your TS would result in:
options_multiple_researchprojects.renderObj.20.noTrimWrap.override.if.value = CONTENT ...
If you want to use stdWrap, this should rather look like:
options_multiple_researchprojects.renderObj.20.noTrimWrap.override.if.value.cObject < lib.blubb
Let me know if it works out for you.
Updated by Alexander Opitz about 9 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Actions