I have a Chronoconnection Custom Listing that is using a one to many relationship that has been configured using the Multi-Tables Settings. Everything seems to work well. However, I am unclear on how to display the values returned in the array. I have two questions concerning the display output. I am using the following code to display the array in my Custom Listing:
I would like to add some formatting because multiple records appear all together with no delimiters. Ideally a line break would appear between each item in the array when it is displayed in my Custom Listing. My output needs to go from the current 'ArrayValue1ArrayValue2ArrayValue3' to
ArrayValue1
ArrayValue2
ArrayValue3
How can I do this?
I have tried this code but it doesn't work:
I have also tried unsuccessfully to use the Array values merger field to configure this.
I have a similar problem with trying to display multiple fields from the same array. This code:
returns output that looks like this: ArrayValue1ArrayValue2 array ( 0 => '2013-08-06 19:26:23', 1 => '2013-08-06 22:06:54', ). Obviously what I want is:
ArrayValue1 2013-08-06 19:26:23
ArrayValue2 2013-08-06 22:06:54
Why does the second field return the entire array and not each record?
As always, thanks for your help!
John
<td>{COMMENT_ID.[n].input_aog_comment}</td>
I would like to add some formatting because multiple records appear all together with no delimiters. Ideally a line break would appear between each item in the array when it is displayed in my Custom Listing. My output needs to go from the current 'ArrayValue1ArrayValue2ArrayValue3' to
ArrayValue1
ArrayValue2
ArrayValue3
How can I do this?
I have tried this code but it doesn't work:
<td>{COMMENT_ID.[n].input_aog_comment}<br /></td>
I have also tried unsuccessfully to use the Array values merger field to configure this.
I have a similar problem with trying to display multiple fields from the same array. This code:
<td>{COMMENT_ID.[n].input_aog_comment} {COMMENT_ID.[n].cf_created}</td>
returns output that looks like this: ArrayValue1ArrayValue2 array ( 0 => '2013-08-06 19:26:23', 1 => '2013-08-06 22:06:54', ). Obviously what I want is:
ArrayValue1 2013-08-06 19:26:23
ArrayValue2 2013-08-06 22:06:54
Why does the second field return the entire array and not each record?
As always, thanks for your help!
John