Got it....
I forgot to set the nodeType attribute of the <cms:query/> tag to the
correct type. :-/
Thanks for reading anyway.
Leviter wrote:
>
> Hi,
>
> I have defined a structure in the data module in which I store some
> 'static' texts to be used in (parts of) JSP pages. There is now a path in
> the data module like: /staticTexts/myTextNode... (but there can be more
> nodes in the 'staticTexts' folder).
>
> This node has an attribute called 'name' (set it to 'myTextNode') and a
> 'text'. (so it is a very simple and basic node)
>
> Now I would like to get the value of the text entered in any JSP template,
> but somehow I cannot seem to get it to work.
>
> I have the following in my code:
>
> <c:set var="query">//staticTexts/[EMAIL PROTECTED]'myTextNode']</c:set>
> <cms:query query="${query}" var="contentList" repository="data"
> type="xpath" />
>
> For some reason the variable contentList returns no nodes (empty list?)
> and thus I cannot retrieve any attributes. When I run the same query in
> the JCR Queries tool I do get a result.
>
> Am I missing something here?
>
> -- Marcel
>
--
View this message in context:
http://www.nabble.com/Read-static-text-from-data-module-tp19627798p19628087.html
Sent from the Magnolia - User mailing list archive at Nabble.com.
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------