Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-3.x-dev
Component:
General
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2009 at 09:57 UTC
Updated:
21 Oct 2009 at 10:10 UTC
Hello,
I have not been able to find information regarding this that worked and have decided to submit this as a support for other to be able to reference in the future.
I am trying to customize the node profile edit page and in .tpl.php file rendering field with, for example:
print drupal_render($form['field_first_name']);
I tried preprocess of field in the node in template.php to change title/remove label but it had no effects.
In the display settings page of the content I set label to hidden but it is not hidden.
Could someone please put me in the right direction?
Thank you!
Comments
Comment #1
markus_petrux commentedNope, CCK does not have any API available for this.
You may want to check editablefields module to see how it does its job.
[EDIT] hmm... if you want to tweak the node edit form itself, then you need to use hook_form_alter() and do this at Forms API level, where you can alter form elements, attach pre_render callbacks, etc.