I have a CTD that has a content relator CCE. For my display, I have a content list of 4 of these instances. For each of these instances, I wish to display the items in the content relator CCE. The problem I am unable to resolve is that the forEach loop only iterates once, not multiple times. The code is very basic:
<c:forEach items="${component.results}" var="category" varStatus="status">
<h2>${category.tblI4Content_title}</h2>
${category.tblI4Content_description}
<p>
<%-- comment: the forEach loop below iterates only once, not 2 or 3 or 4 times as it should --%>
<c:forEach items="${category.vcmuser_tblI4Blogs}" var="blog" varStatus="blogStat">
title: ${blog.tblI4Blogs_title}<br>
url: ${blog.tblI4Blogs_url}<br>
number of blogs: ${blogStat.count}
</c:forEach>
</p>
</c:forEach>
In this case, I have 4 items (category). Each category has from 1 to 4 blogs related to them. I would expect to list out all the related blogs for each category, but get only 1 for each category. I am not able to figure out what's wrong. Can anyone shed any insight to what I am doing wrong?
Thanks,
Christine