Posted by Hanno on April 29, 2008 at 2:46pm
Jump to:
| Project: | Node factory |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | clemens.tolboom |
| Status: | closed (won't fix) |
Issue Summary
default values of the cck_fields are not populated by generating a new node.
should we loop all fields and fill in the default value?
$value = ((!empty($field['widget']['default_value'][0]['value'])) ? $field['widget']['default_value'][0]['value'] : '');
Comments
#1
Hope to do this one soon.
#2
I need some suggestions for this one. I think this is the best place to do this
<?phpfunction node_factory_create_node( $nodetype){
?>
but the question is how?
How do I get a list of fields?
#3
- no feedback