[opencms-dev] Re: Displaying properties within <cms:contentload>
Toni PĂ©rez
tp.ocms at gmail.com
Tue Aug 15 17:17:58 CEST 2006
On 14/08/06, Christian Steinert <christian_steinert at web.de> wrote:
[...]
> Or can I somehow get the name of the current
> contentload-file into a scriptlet-variable?
Hello, Christian.
This is a way you could get the path (relative to the site) of the
current content loaded:
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
[...]
<cms:contentload collector = "allInFolderNavPos"
param = "/faq/faq_${number}.html|xmlpage"
editable = "true">
<c:set var="filename"> <cms:contentshow
element="${opencms.filename}" /> </c:set>
<%
String filename = (String)pageContext.getAttribute( "filename" );
out.println( "<p>Filename: [" + filename + "]</p>" );
%>
</cms:contentload>
I hope that helps.
Regards.
Toni.
More information about the opencms-dev
mailing list