Hi Kris
I think this might help:

<cms:out nodeDataName="jid" var="jid" />
<%
    String jid = (String)pageContext.getAttribute("jid")
%>

Cheers, Thomas


On 30.12.2009, at 14:53, Kris Wolff wrote:


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]>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to