How do you grab node variable?
j0k3z - February 12, 2009 - 00:09
| Project: | CCK GMap Address |
| Version: | 5.x-1.0-beta1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
What is the proper format to fetch a variable from the node? All the code I see is for fetching data from other fields, not from variables within the node

#1
Grabbing node variables should work with
titleorchangedor all other variables available in $node. Just test it.#2
Im talking about a varible that I set with php within the node body.
How to I grab that value?
#3
You mean you set
$node->body? If it's only a part of $node->body you will get big problems, because then you had to expose the data via regex. This could be dirty. That is too much effort for this module, I guess.