Project:Computed Field
Version:6.x-1.0-beta3
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

It is my understanding that php code in the Computed Code text area is to be executed by the module.

My example is simplest of php yet I do not understand while it will not work.

If i place an integer in $node_field[0]['value'] = ""; such as

$node_field[0]['value'] = "4";

It will not display 4 in my node

However if I alternatively do this in the Display Field

$display =4;

then it will display

what is confusing me is that

$display = $node_field_item['value']; should produce the value in the Computed Field $node_field[0]['value'] = "";

why does the example above not work?

$node_field[0]['value'] = "4"; should cause $display = $node_field_item['value']; to be equal to 4

Comments

#1

Status:active» postponed (maintainer needs more info)

The code you used works fine for me. I am also using 6.x-1.0-beta3. I am thinking more info is needed to solve your problem.

As to what the difference is between $node_field[0]['value'] and $node_field_item['value'] , not a clue. I think some more documentation on this would be in order. Is there an API for computed field?