Try

String phone =
((Resource.getLocalContentNode(request)).getNodeData("phone")).getString
();

Cheers,
Jay Moskos

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 03, 2006 10:07 AM
To: [email protected]
Subject: [magnolia-user] getting content of nodes

hi,

i think i've got a little missunderstandig:

<cms:out nodeDataName="Phone" /> prints the content of Phone. so far so 
good. but how i can access the same content in a scriplet?

i try the code below, but it doesn't work. why?

Content currentPage = Resource.getActivePage(request);       
String email = currentPage.getNodeData("Phone").getString();

thx for help

so long

ingo


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to