在哪里可以找到 joomla 内容源文件

Where to find joomla content source files

我在 joomla 框架上有这个网站 http://carhitz.com/ 我想在我网站的不同页面上添加一些新按钮和新 div,但我找不到各个页面的源代码。我知道它们位于 components 文件夹中,其中包含 com_(something) 之类的内容,但我真的无法弄清楚哪个组件文件指向哪个页面。 例如:我想找到包含以下内容的 php 文件 link:

http://carhitz.com/lighting-gallery

但我找不到用于生成所有这些雕塑画廊项目的组件或任何文件。有谁知道我在哪里可以找到它们? 我正在使用 hexeris 主题。

Joomla!不像某些文件夹中的页面那样工作,内容由菜单项、组件或模块生成。

在您的示例中,您似乎正在使用名为 RokGallery 的组件,因此,在主菜单 Components 中找到该组件在您网站的后端。

如果您需要更改此组件中的某些内容,您需要一个 覆盖,这里有
一步一步:https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager


您也可以查看这个有用的指南:

显示 com_content 内容的文件夹:yourhost\components\com_content\views\article\tmpl\default.php

但我建议更改自定义页面的最佳方法是在后端添加自定义模块 -> 扩展 -> 模块并将模块分配给菜单

Joomla 框架基于 MVC(模型视图控制器)。命令来自用户->控制器->模型(数据库)->视图。如果您在全局配置中禁用 sef url,您会发现这样的链接。 http://www.example.com/index.php?option=com_example&view=content&id=7. This means the component is com_example which you can find inside components folder. It calls the controller which redirects to the model and then model redirects to views folder. Inside views there is tmp folder and inside this there is a default.php file which is template for the view. The variables passed to default.php is from views.php file. If you check this link you will find more details https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component.