Hello,
I've created a content type that includes a cck image field and some text fields.
I want to change it's add/edit page's appearance and functionality.
For example I want to add image annotation/tagging mechanism.

Is there a way to override a content type's create page?

Kind regards...

Comments

aburrows’s picture

The form itself?
If so create a custom module e.g. alter_node_type
Then create a hook

function alter_node_type_form_alter(&$form, &$form_state, $form_id) {
dpm($form_id); // will show form id of this form
 if($form_id == 'form_id') { // replace form_id with the one shown
 // code here
 }
}
sbsn’s picture

I've created a new module
and implemented below function

mymodule_form_mycontent_node_form_alter {

}

Now I'm able to edit form fields.
But what I need is more than this.
I want to design my own page. For example:

  • User should be able to upload an image.
  • User should be able to add some annotations on this image. (so I should be able to use javascript with this add page.)

When user press submit button I should be able to map this annoations and image to CCK fields and save them.

Is there a way to implement this kind of page.

Kind regards...