I used hook_nodeapi to add my custom field to a type of node
$node->content['my_new_field'] = array(
'#value' => $content,
);
However the new field is only appeared at the end of the content. Is there anyway for me to select a place for it to display ? e.g: between Title and Body.
For some reason I won’t be able to use CCK, I want to do it programmatically.
Thanks in advance
There is something called
weight. If you llok at the code from API docs, you’ll see how that is supposed to work. Lower numbers appear before higher numbers.So you could do something like