如何在 Joomla 1.6 文章编辑器中插入自定义字段?
我想在 Joomla 1.6 管理区域的文章编辑页面中插入自定义字段。请看截图。
http://screencast.com/t/vtLEBdUK
我尝试编辑 myjoomlasite/administrator/组件/com_content/models/forms/article.xml
。
我可以在文章选项字段集中引入字段,但不能在主编辑区域中引入字段。
I want to insert a custom field in the Article edit page in the administration area of Joomla 1.6. Please see screenshot.
http://screencast.com/t/vtLEBdUK
I have tried to edit myjoomlasite/administrator/components/com_content/models/forms/article.xml
.
I can introduce a field in the article options fieldset, but not in the main edit area.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不建议修改核心文件来实现你想要的。
您可以使用 Joomla 的 CCK(内容构建工具包)之一来创建内容模板。
Joomla 可用的最佳免费 CCK :
您可以在 Joomla 扩展目录
I wouldn't recommend modifying the core files to achieve what you want.
You could use one of Joomla's CCK (content construction kits) to create your content templates.
Best free CCKs available for Joomla :
You can find more in Joomla Extension Directory
要在管理中的文章编辑页面中插入自定义字段,您需要更改两个文件
myjoomlasite/administrator/components/com_content/models/forms/article.xml
添加您的字段名称,如下面的代码
myjoomlasite/administrator/components/com_content/views/article/tmpl/edit.php
添加标签和输入字段
For insert a custom field in the Article edit page in the administration you need to change in two files
myjoomlasite/administrator/components/com_content/models/forms/article.xml
add your field name like below code
myjoomlasite/administrator/components/com_content/views/article/tmpl/edit.php
add your label and input field
您可以将自定义字段添加到文章组件(com_content),而无需更改此链接中的核心文件:http:// /docs.joomla.org/Adding_custom_fields_to_the_article_component
you can add custom fields to the article component (com_content), without the need to change core files in this link: http://docs.joomla.org/Adding_custom_fields_to_the_article_component