Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there anyone out there having issues populating Realname from the nodes?
When I output the $node with dsm($node);
, I see the realname value is there, but is returns an empty value with the code below:
$node_title = $node->title;
$seller = $node->realname;
$details = $node->field_desc[0]['value'];
$node_field[0]['value'] = 'Title: ' . $node_title . ' | Seller: ' . $seller . ' | Details: ' . $details;
Any ideas?
Thanks,
Comments
Comment #1
Moonshine CreditAttribution: Moonshine commentedDoesn't sound like "realname" is CCK field or core node value here, maybe something attached by another module? In any event if you can see it in $node then it sounds like just a problem referencing it. Moving to support where there are more eyeballs.
Comment #2
mmjvb CreditAttribution: mmjvb as a volunteer commented