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

profpek’s picture

figured out that

$output .= theme('location', '1');
print $output;?>

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

EvanDonovan’s picture

 $address = theme('location', $node->location); 
print $address;  

Online Publications Editor,
UrbanMinistry.org
http://www.urbanministry.org/user/evandonovan

Nonprofit / EdTech Mentor
http://drupal.org/user/168664