*Solved* Help with Theming a CCK Input Form

Events happening in the community are now at Drupal community events on www.drupal.org.
dawehner's picture

Solved
very strange , but i commented print_r(array_values($form)); and than it works

so i try to theme 3 different kinds of input forms
all is displayed well, but there is NO save into the DB or no elements are sent by the submit Button

thats my theme
http://drupal.pastebin.com/mb5311a6

the normal form works very well
So what do i have to do that the data is saved

Comments

Did you get this resolved?

dwees's picture

I see you have edited it to say solved, but a quick description of how you solved it would be useful.

Dave

the solution was such

dawehner's picture

the solution was such easy

<?php
print drupal_render($form['form_token']);
print
drupal_render($form['form_id']);
?>

has to be in the theme, I'm not sure yet what makes what or whether only one of this is needed

re: drupal_render($form);

dwees's picture

I think you can also just use drupal_render($form) and it will render whatever form elements you have not yet rendered.

Dave

not yet, cool! very good

dawehner's picture

not yet, cool!
very good tipp
i have a idea of a workflow with nodetyp:client, bill, products, letters etc. based on drupal

Google Highly Open Participation Contest (GHOP)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week