[opencms-dev] Hide Nav Text

Wils wilson.neto at cesar.org.br
Thu Mar 16 21:43:07 CET 2006


Hi,

I am using XML Schema to generate files...style articles samples...

I am using a jsp to list files and other jsp to display the content.

To list my files using list.jsp i must check the option "Add to navigation" in the properties file.

If this opton not checked, the list.jsp cant show the list of my files.

See:

<%@ page import="java.util.*" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>

<%

// Author: wilson.neto at pitang.com 
// cria um JSP action element
org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response);

// pega os arquivos 
List list  = cms.getNavigation().getNavigationForFolder("/rain/medias/");
Iterator i  = list.iterator();

while (i.hasNext()) 
{
    org.opencms.jsp.CmsJspNavElement ne = (org.opencms.jsp.CmsJspNavElement)i.next();

 out.println("<li><a href=\"" + cms.link(ne.getResourceName()) + "\" class=\"verdana10\">" +ne.getTitle()+ "</a></li>");

}    
out.println("</ul><br><br><br>");

%>


Other problem is the display.jsp, it show the file propertie in the document body.

HOw can hide?

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


More information about the opencms-dev mailing list