[opencms-dev] Sitemap Module

Joachim Arrasz info at arrasz.de
Sat Aug 23 13:00:02 CEST 2003


Hi Mario,

i did this with just one jsp. I`m not sure if this works for you but have
a look:
<%@ page import="java.util.*,com.opencms.flex.jsp.*" %>
<%@ page import="com.opencms.file.*" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>

<%

// Create a JSP action element
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,
response);CmsObject oCms = cms.getCmsObject();
String filename = oCms.getRequestContext().getUri();

String sMainNavPath = null;
String sAbsolutePath = null;
final String sServletPath =
oCms.getRequestContext().getRequest().getServletUrl();out.print("<a href=\"" + cms.link("/synyx/sitemap.jsp") +"\"
class=\"Kategorie\">Sitemap:</a>  ");out.print("<a href=\"" + cms.link("/synyx/index.jsp") +"\">Home</a> ");
String sCurrentFolderName =
oCms.getRequestContext().currentFolder().getName();out.print("> <a href=\"" +
cms.link(cms.getRequestContext().currentFolder().getAbsolutePath()) +"\">"          + oCms.getRequestContext().currentFolder().getName() +
          "</a> ");%>

The output you can see on

www.synyx.de/opencms/opencms/synyx/

then just click on sitemap ...

Hope this helps

-- 
Questions about OpenCMS?
--> www.opencms-forum.de


> Mario Wallnofer>
> Did anyone develop something like a Sitemap Module ??
>
>
> Mario
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit http://mail.opencms.org/mailman/listinfo/opencms-dev






More information about the opencms-dev mailing list