Paid affiliate advertisement
Simple Content Submission Form
calebm12 - July 1, 2009 - 12:50
Am still in building mode, but need editing on a content submission form. would like it "cleaned" from the original drupal layout. it currently has several fields based on taxonomy. Would like these removed from the vocab heading but still based on taxonomy terms.
Just one form to do.....basically so i can learn how to do it. Working off a template called Shallow Grunge.

try to add this to your
try to add this to your template.php file. As you can see it convert input types to hidden since they are needed. If you don't need field at all just set to NULL.
function phptemplate_node_form($form) {
// Node author information for administrators
$form['author'] = array();
$form['author']['name'] = array(
'#type' => 'hidden',
'#default_value' => $node->name ? $node->name : '',
);
$form['author']['date'] = array(
'#type' => 'hidden',
);
return drupal_render($form);
}
Many thanks. Problem is the
Many thanks. Problem is the theme i have installed doesnt have a template.php file that i can find.
so as i am still trying to understand php
#type => 'hiddne'
removesthe "category" a feild falls under. For isntance getting rid of the term vocaubularies for all the fields that are linked via taxonomy??
i dont really mind this info (i.e. vocabulaires, menu settings, etc) being present for the admin role. It is for the registered users that i think it clutters and confuses.
really appreciate your time.