[opencms-dev] JSON output

脸谱 afeinet at 163.com
Wed Feb 13 07:30:38 CET 2019


Hi, I have not used the jsonpart tag, but I suggest you use the following code to try to see what the output is.


<cms:contentload collector="allInFolder" param="/service/1/Direction-%(number).xml|Direction" preload="true">

  <cms:contentinfo var="info" />
  <c:if test="${info.resultSize > 0}">
  <cms:contentload>
      <%--  This is itself a loop call. It is not sure which part is decided. --%>
      <cms:contentaccess var="content" /> <%-- This content will change with the loop, so it might be yours Direction1.xml, Direction2.xml, Direction3.xml . . . --%>
      <cms:jsonpart element="Title">  ${content.value.Title}  </cms:jsonpart>
   </cms:contentload>
  </c:if>
 </cms:contentload> 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20190213/7490ace6/attachment.htm>


More information about the opencms-dev mailing list