[opencms-dev] List item

Диканский Андрей Юрьевич adikanskii at ncfu.ru
Wed Dec 4 15:49:20 CET 2019


I created list of items with cms:contentload tag. I added attribute editable = "true" . I can edit items in the list, but I can't add new item. There is no button add.
What's wrong with my code?

OpenCms 10.5.4

<c:set var="folder" value="/.content/forum-news/"/>
<c:set var="type" value="forum-news"/>
<c:set var="count" value="3"/>

<ul>

<cms:contentload collector="allInFolderPriorityDateAsc" param="${folder}|${type}" editable = "true" editEmpty="true" pageIndex="${page}" pageSize="3" pageNavLength="4">

<cms:contentinfo var="info"></cms:contentinfo>

<cms:contentaccess var="content1" />
<c:set var="link"><cms:link>${content1.filename}</cms:link></c:set>
<li><span>
<fmt:formatDate value="${cms:convertDate(content1.value.Date)}" type="date" pattern="dd.MM.yyyy"/>
</span><a href="${link}">${content1.value.Title}</a></li>
</cms:contentload>

</ul>



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


More information about the opencms-dev mailing list