Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在模块管理器中,当我进入模块设置时,在名为“选项”的第二个选项卡中有“高级选项”部分。在高级选项中,有一些字段,例如Module Tag、Header Tag和Header Class。当我更新这些字段时,我在模块的 html 中看不到任何更新。我是否需要使用类似这样的代码在模块模板中调用这些函数$params->get('header_class')?我认为这无需更改模板代码即可工作。只是想澄清一下。
Module Tag
Header Tag
Header Class
$params->get('header_class')
我相信您应该通过$params 模块 chrome 中的 $params->get('header_tag', 'h2') 来引用这些项目。如果模块 chrome 不使用该参数,那么您将看不到任何更改。您可以在模板 /html/modules.php 中创建覆盖以使用它们。
$params