[opencms-dev] use of param. macro in contentshow
Matthew Fremont
matthew at cyclepaths.com
Tue Mar 28 01:52:49 CEST 2006
I'm attempting to use a URI parameter to retrieve a particular nested
element in some XML structured content using OpenCms 6.2-beta.
After looking over the code for CmsMacroResolver and
CmsJspTagContentShow, it looks like the contentshow tag should resolve
macro references in the element attribute, and ${param.paramname} should
be resolve to the value of the URI parameter "paramname". Is this correct?
If so, and the URI parameter is "model" with its value set to the index
of the nested element, and the nested XML element is named "Model", then
I would have thought that the following would display the "Description"
element of the nested content:
<cms:contentshow element="Model[${param.model}]/Description"/>
Instead "??? Model[${param.model}]/Description ???" is output,
suggesting that the macro reference isn't being resolved.
What am I doing wrong?
Thanks for your assistance,
Matthew Fremont
More information about the opencms-dev
mailing list