Posted by epromuthu on June 23, 2012 at 12:05pm
Hai All,
I have created new Content type and using this new content type, i have created new page(Addcontent->new content type). also i have created new tpl php file under templates folder for this new content type. everything working well..
But i have created sample custom forms in tpl.php file (textfield, button). how do i integerate my custom form to the drupal function. and how do i use drupal function for saving and validate.etc..
Please help me on this step by step..
Thanks
Muthukrishnan R
Comments
If you are creating a content
If you are creating a content type through the UI you would add fields using the "Manage fields" tab for the content type and there are modules to extend the default validation. Saving data for content types created through the UI are handled by Drupal
Hai nevets,Thanks for your
Hai nevets,
Thanks for your reply...but i dont want to add fields to the contenttype.
I have created a new content type then created new tpl.php file for new content type....... In the tpl.php file i have the custom form layout like username and email textfields with labels and form name and id,.
Now i want to do validate those form values, and save the values to the table using drupal funciton....or i want to integrate custom forms with drupal functions.....
Thanks
Muthu
Functionality (including
Functionality (including fields) should be done through the UI or code (modules), the theme layer (including template files) are meant for changing how things are layed out.
Without any coding one would typically use a content type or webform module.