[opencms-dev] %{opencms.filename} macro not resolving properly in a <cms:contentload> tag?
Iulian Dogariu
iulianu at gmail.com
Wed Sep 24 00:00:30 CEST 2008
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)
More information about the opencms-dev
mailing list