AW: [opencms-dev] Sitemap Module
Mario Wallnöfer
mario.wallnoefer at msk-informatik.at
Sat Aug 23 16:20:02 CEST 2003
Hi Achim,
thanks a lot for your help. but i think your example is more a breadcrumb
navigation.
what i need is a page, where automatically the whole website is
displayed(with links)
like the content in your Sitemap page.
mario
-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org]Im Auftrag von Joachim Arrasz
Gesendet: Samstag, 23. August 2003 12:41
An: opencms-dev at opencms.org
Betreff: Re: [opencms-dev] Sitemap Module
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
_______________________________________________
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