[opencms-dev] The "new" button is not display when using the OpenCms API invoke lists in JSPs

tallship tallship at qq.com
Sat Dec 24 18:49:17 CET 2016


Hi All,
I want to create a lists in JSPs using the OpenCms API,but the "new" button will not be shown on lists.
Who can help me with this issue? 









<%@ page import="java.util.*,org.opencms.jsp.*,org.opencms.file.*,org.opencms.xml.content.*" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>API</title>
<style>body{padding-top:100px;}</style>
<cms:editable/> 
</head>
<body>
<ul>
<%
CmsJspXmlContentBean thisPage = new CmsJspXmlContentBean(pageContext, request, response);
I_CmsXmlContentContainer contentContainer = thisPage.contentload("allInSubTreeDateReleasedDesc", "/en/news/new_%(number).html|ttarticle", true);
  while (contentContainer.hasMoreContent()) {
  out.write("<li>"+ thisPage.contentshow(contentContainer, "Title") + "</li>");
}
%>
</ul>
 </body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20161225/d1560c6b/attachment.htm>


More information about the opencms-dev mailing list