How do I get access to a child table of a content type?
I am trying to get the property values of a child to my content type.
Content type: Bid
property name: planholderlist
this is a sys_table control
Thanks for any help you can give.
How do I get access to a child table of a content type?
I am trying to get the property values of a child to my content type.
Content type: Bid
property name: planholderlist
this is a sys_table control
Thanks for any help you can give.
Try something like this (in Velocity)
#set($planholders=$sys.item.getNodes("planholderlist"))
<table border="1" class="plantable">
#foreach($plan in $planholders)
<tr class="plantablerow2">
<td>$plan.getProperty("rx:holdername").String</td>
<td>$plan.getProperty("rx:holderphone").String</td>
<td>$plan.getProperty("rx:fax").String</td>
##more properties here as you need them
</tr>
#end
</table>
You didn’t say what the names of the properties are, so I’m guessing.
Thanks that work well.