Menu

#145 structure tag - componentProperties

open
nobody
None
5
2008-09-16
2008-09-16
Anonymous
No

trying the example from the developer manual:

Here an extract

<c:forEach var="articleProperty" items="${articleProperties}" varStatus="count">
<c:forEach var="articleBinding" items="${articleProperty.bindings}"
varStatus="countBindings">
<content:content id="articleContent" contentId="${articleBinding}"/>
<content:contentAttribute id="title" contentId="${articleContent.id}"
attributeName="Titel"/>
<p><c:out value="${title}" escapeXml="false"/></p>
</c:forEach>
</c:forEach>

(note: in the manual there is a not necessary </c:if> line ad an initialization variable not clear)

I obtain an empty bindings array!

An example of a sitenode with two articles for articleProperty that I obtain:

[{bindings=[], name=Article, path=Legal notes, type=contentBinding}, {bindings=[], name=Article, path=Contacts, type=contentBinding}]

You can see bindings=[] so it is impossible to retrieve the article contents.

Discussion


Log in to post a comment.