开发者

add simple texts to drupal contact form

I'm building a site and it has a contact page . the contact page uses contact module and it has some basic forms , what I want is to add some simple text like my personal email and phone number and ... to this page , but I couldn't find a way to do it . I'll be appreciated if you can help me with this tha开发者_开发技巧nks

//--------------------------------------------------

finally found the answer! I made a file named "page--contact.tpl.php" and from there after

<?php print $feed_icons; ?>

I just wrote whatever information I wanted and it worked!


My suggestion ditch the contact form and go for Webforms You will thank me in the long run.


You can also create a block, add it above or below the form, then add your information to it. Simplest solution if you all you need is an area to add some details.


You can implement hook_form_alter() and then you can do whatever you want with the contact form.

See http://www.lullabot.com/articles/modifying-forms-drupal-5-and-6 and http://www.metaltoad.com/blog/how-add-field-drupal-contact-form

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜