将简单的文本添加到 drupal 联系表单中
我正在建立一个网站,它有一个联系页面。联系页面使用联系模块,它有一些基本表单,我想要的是添加一些简单的文本,例如我的个人电子邮件和电话号码......到此页面,但我找不到方法来做到这一点。如果您能帮助我,我将不胜感激 谢谢
// - - - - - - - - - - - - - - - - - - - - - - - - ---
终于找到答案了!我创建了一个名为“page--contact.tpl.php”的文件,然后从那里
<?php print $feed_icons; ?>
我只写了我想要的任何信息,它起作用了!
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
thanks
//--------------------------------------------------
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我的建议是放弃联系表单并使用 Webforms 从长远来看,您会感谢我的。
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.
您可以实现 hook_form_alter()< /a> 然后您可以使用联系表做任何您想做的事情。
请参阅http://www.lullabot.com/articles/modifying- forms-drupal-5-and-6 和 http ://www.metaltoad.com/blog/how-add-field-drupal-contact-form
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