简体   繁体   English

将HTML放入Joomla 3文章标题字段

[英]Put HTML in Joomla 3 Article Caption Field

I have a site in Joomla 3.x and in it's native Full Article Image and Caption field I would like to be able to put HTML in the Caption field. 我在Joomla 3.x中有一个网站,在它的本机“ 全文图片标题”字段中,我希望能够将HTML放在“标题”字段中。

Right now the field strips any html and just displays text. 现在,该字段会删除所有html并仅显示文本。 How can I edit joomla to make the caption field edit/output html. 如何编辑joomla以使标题字段编辑/输出html。 I am using the default protostar theme. 我正在使用默认的protostar主题。

http://docs.joomla.org/images/b/ba/Help30-Content-Article-Manager-Edit-screen.png http://docs.joomla.org/images/b/ba/Help30-Content-Article-Manager-Edit-screen.png

First you have to change field filter and type in article XML file located in /administrator/components/com_content/models/forms/article.xml Then you should check if database field have required length. 首先,您必须更改字段过滤器并键入/administrator/components/com_content/models/forms/article.xml中的文章XML文件,然后应检查数据库字段是否具有所需的长度。 The last part is checking if there is no additional filtering in those files: 最后一部分是检查这些文件中是否没有其他过滤:

  • /administrator/components/com_content/models/article.php /administrator/components/com_content/models/article.php
  • /administrator/components/com_content/controllers/article.php /administrator/components/com_content/controllers/article.php
  • /libraries/legacy/tables/content.php /libraries/legacy/tables/content.php

and of course in files from front-end (article and category models and views) 当然还有来自前端的文件(文章和类别模型以及视图)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM