Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Joomla以37美元获得专业版_Joomla - Fatal编程技术网

Joomla以37美元获得专业版

Joomla以37美元获得专业版,joomla,Joomla,我对乔姆拉有意见。在文章页面中,有一张名为“获取专业版”的图片,售价37美元。如何删除这个。 在components\com\u content\views\article\tmpl\default.php中,变量名$this->item->text。删除此变量时,图片和内容也将被删除。如何仅删除此图像 使用预匹配代码 preg_match('/(<img[^>]+>)/i',$this->item->text, $matches); preg_match('/(

我对乔姆拉有意见。在文章页面中,有一张名为“获取专业版”的图片,售价37美元。如何删除这个。 在components\com\u content\views\article\tmpl\default.php中,变量名$this->item->text。删除此变量时,图片和内容也将被删除。如何仅删除此图像

使用预匹配代码

preg_match('/(<img[^>]+>)/i',$this->item->text, $matches);
preg_match('/(]+>)/i',$this->item->text,$matches);

使用此代码后,可以轻松地从文章中删除图像标签

登录到/administrator

选择
Content->Article Manager
。您将看到类似以下内容的文章列表:

找到你想要的文章,在列表中单击它的名称,这将打开编辑器,看起来与此类似:

单击有问题的图像,然后按
delete

单击其中一个“保存”按钮保存更改,它们位于右上角的工具栏中:

转到管理员从文章内容中删除图像。这将从文章内容中删除所有图像!这是个糟糕的主意哦,我不知道你怎么能推荐这个