1

我正在 Joomla 中编辑现有模板,我需要更改菜单图标文本。在 Joomla Administrator 中,我找不到可以执行此操作的地方。因此,在 FireBug 中,我找到了我正在搜索的 DIV 容器。但是如果我更改 FireBug 中的文本,我的更改显然不会保存。现在非常基本的问题是:我如何知道这个 DIV 容器所在的 PHP 或 HTML 文件的名称?或者如何保存我的更改?

4

5 回答 5

2

FireBug will only change web browsers content, it will not affect files on the server. If you know DIV's id you can search for files with this string on the server. To save changes - edit file and save - but on the server.

于 2012-09-19T11:15:22.710 回答
1

我使用 TestWrangler 应用程序(我在 Mac 上) - 打开空白 TW,单击搜索,浏览以查找要搜索的文件夹。我总是在我的硬盘驱动器上搜索我的网站文件夹的副本,而不是实时站点文件。搜索您要查找包含它的文件的文本字符串。给 TW 几秒钟或更长时间,它会准确地告诉您哪个文件包含该字符串。 http://www.barebones.com/products/textwrangler/

于 2015-07-02T13:16:25.103 回答
0

I just thought I'd share this as a possible 'answer' as well.

there is a joomla extension that enables you to search through your source code within joomla itself.

Here is the link:

http://extensions.joomla.org/extensions/miscellaneous/development/22858

I'm sure it will come in handy instead of going through the hassle of a complex setup on localhost.

于 2013-01-19T23:51:28.527 回答
0

当您右键单击 HTML 元素并选择“使用萤火虫检查”时,在萤火虫屏幕的右侧,您将看到应用于该元素的样式以及行号,如果您只是将鼠标悬停在上面它会显示文件的确切位置。

于 2012-09-19T12:27:10.900 回答
0

使用文件搜索工具,它包含在大多数 IDE 中,如果您的编辑器没有这样的功能,请尝试使用文件 grep 工具,如wingrep (http://www.wingrep.com/)

于 2012-09-19T12:40:36.453 回答