Joomla 仅显示联系表
我已经为我的 Joomla
网站创建了联系表单。该联系页面中有两个项目:联系
(此处列出了我的联系方式)和联系表单
。我不需要显示 Contact
项目。我只需要显示联系表单
。我如何删除Contact
项目并仅显示Contact Form
? (我使用的是 Joomla 2.5)
I have created a contact form for my Joomla
site. There are two items in that contact page as Contact
(my contact details are listed here) and Contact Form
. I don't need that Contact
item to display. i need to show only Contact Form
. How could i remove Contact
item and display only Contact Form
? ( I'm using Joomla 2.5 )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不要编辑
components/com_contact/views/contact/tmpl/default.php
模板覆盖的重点不是触及核心文件。相反,请复制components/com_contact/views/contact/tmpl/default.php
并将其放入
templates/YOUR TEMPLATE/html/com_contact/contact/default.php
>现在,您可以对该文件进行所需的所有更改,而不必担心更新会覆盖您的编辑,如果您弄乱了文件,您所要做的就是制作一个新副本并重新开始。
至于您想要的更改,所有各种联系方式都显示在第 19-65 行之间。联系信息显示的末尾有一个
。您可以根据需要简单地删除部分或全部代码。
Don't edit
components/com_contact/views/contact/tmpl/default.php
the whole point of template overrides is not to touch core files. Instead, make a copy ofcomponents/com_contact/views/contact/tmpl/default.php
and put it in
templates/YOUR TEMPLATE/html/com_contact/contact/default.php
Now you can make all the changes you want to that file without having to worry about an update overwriting your edits and if you mess up the file all you have to do is make a new copy and start over.
As for the changes you want, all of the various contact details are display between line 19-65. There is a
<p></p>
at the end of the contact info display. You can simply remove any or all of that code as needed.快捷方式:
转到组件 ->联系方式->选项->联系方式->显示格式:普通
Short cut:
Go to Components -> Contacts -> Options -> Contact -> Display format: Plain