By profpek on
hello
using
<?$node = node_load(array("nid" => "1"));
// print the node's body
print $node->body; ?>to display a nodes body in another page. problem is it does nt show the location associated with that node "1"
tried using
<?$location = theme_location(array("oid" => "1"));
// print thelocation
print $location->street; ?>but that does nt work
I assume i'm right in trying to use the function theme_location but not understanding how to use it
Thanks
Ric
Comments
getting closer
figured out that
gives me the styling that i want. But I dont know how to use $location inplace of '1' to get the data/address to fill out the style
any help or clues gratefully recieved
Ric
Try this in your tpl.php (code taken from the API doc)
Online Publications Editor,
UrbanMinistry.org
http://www.urbanministry.org/user/evandonovan
Nonprofit / EdTech Mentor
http://drupal.org/user/168664