2

I want to create a form for the backend in Drupal 7, something like the following:

label 1   text box 
label 2   text box 
label 3   text box 
label4    image
image

I then invoke the form output in the front page and other pages.

1 Answer 1

2

You could do this by creating a content type with fields, or using Webform module. A lot depends on who will be filling out the form (anonymous visitors, content editors) and what you need to do with the results.

6
  • coud i set only the admin and the editor can fill out the form with webform?
    – enjoylife
    Commented May 14, 2011 at 14:08
  • Yes you can set which role can submit Webforms (globally or per form). If you need to control which roles can view Webforms, use one of the content access modules.
    – pushka
    Commented May 14, 2011 at 15:37
  • if i want to invoke the webform in the page--front.tpl.php. how do i do?
    – enjoylife
    Commented May 15, 2011 at 1:20
  • @enjoylife: @pushka's answer is correct, you can use a content type, a webform, or even a custom module (more work, but more flexible). Before you decide to go with Webform, make sure it is the best solution for your situation. What do you want to happen with the submitted information? Commented May 15, 2011 at 8:56
  • marcvangend ,i only invoke the form in page-front.tpl.php. in order to maintain it conveniently and make the editor changes the form content easily ,so i want to do a admin interface to the form. thank you. if i want to custom the module, how should i do?
    – enjoylife
    Commented May 15, 2011 at 13:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.