[opencms-dev] AW: %{opencms.filename} macro not resolving properly in a <cms:contentload> tag?
Hendrik Jander
hendrik.jander at pixelpark.com
Wed Sep 24 09:13:11 CEST 2008
Hello,
Try to use ( ) instead of { } around the opencms.filename.
Regards,
Hendrik
-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Iulian Dogariu
Gesendet: Mittwoch, 24. September 2008 00:01
An: opencms-dev at opencms.org
Betreff: [opencms-dev] %{opencms.filename} macro not resolving properly in a <cms:contentload> tag?
Hi all,
In a <cms:contentload> tag, I am trying to get the path to each resource found. Here's the JSP snippet:
--Cut here--
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<ul class="one_three_box_ul">
<cms:contentload collector="allInFolder" param="/news/|news_item|3"> <li> <cms:contentshow element="%{opencms.filename}" /> </li> </cms:contentload> </ul> --Cut here--
However, the output I am getting is just
??? %{opencms.filename} ???
for each resource found.
After a cursory glance through the OpenCms code, it appears that the %{opencms.filename} macro is not expanded, as the docs say it should happen. Any ideas why?
Here's some additional info:
* I'm running OpenCms 7.0.5 on Java 6.
* The structured content type named "news_item" is defined fine, as far as I can tell. I can display an element just fine using the contentshow tag inside contentload.
* The JSP snippet above gets included via <cms:include> in a bigger template.
Appreciating any hint.
i.
--
Iulian Dogariu http://www.jayomega.net/
GPG: 0x92B1C594 {jabber|mailto}:iulianu at gmail.com
-- "Live as if you were to die tomorrow.
Learn as if you were to live forever." (Gandhi)
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list