| Project: | Content Profile |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi guys, I'm writing because I'm encountering a problem.
I will theme the edit uprofile, reorganizing the forms
http://drupal.org/node/601646
I have created a node-uprofile-edit.tpl.php and added in template php this function:
<?php
function MY-THEME_theme($existing, $type, $theme, $path) {
return array(
'uprofile_node_form' => array(
'arguments' => array('form' => NULL),
'template' => 'node-uprofile-edit'
),
);
}
?>Everythings work, i can print out the singles forms correctly using:
<?php print drupal_render($form['field_profile_img']); ?>
<?php print drupal_render($form['name']); ?>
<?php print drupal_render($form['buttons']); ?>All the fields are displayed well and correctly, but there's one big problem, when I try to update some informations it will empty the user profile and clear the author of node changing it in Anonymous
I tryed to use node_form template
http://drupal.org/project/node_form_template i was able to alter the uprofile-form but no luck in saving. So i tryed with other content types and works fine, it saves information correctly.
These something i'm missing? i must use a special variable of content template to make it working?
Best regards
Luke