I am using this code, witrhout a error:
Content pageContent = MgnlContext.getActivePage();
jid = pageContent.getNodeData("jid").getString();
but jid is empty...
and:
<cms:out nodeDataName="jid" />
works.
.
Thanx in advanced.
Kris
Kris Wolff schrieb:
Hi folks,
i have a template that uses a lot of jsp inside the template. I have
to get a value inside the script.
So, for example the tittle will be worked like this:
<cms:out nodeDataName="title" />
i can not use the taglib inside the scriptblock, right?
<%
String value = new String("foo"+ "<cms:out nodeDataName="title" />");
%>
so i need the object by itself, like:
<%
String value = new String("foo"+ cms.out.nodeDataName("title"));
%>
can someone give me the example how to do this right?
Tanx a lot!
kris
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------