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.
我创建了一个列出特定文章列表的模块。我可以使用. . 但我无法获取模块的标题。 有人可以帮我吗??$params
$params
该函数是一个普通的 PHP 函数,因此可以使用任何普通的 PHP 代码。一个常见的例子是使用 if 语句检查 $module->showtitle 的值,然后相应地包含或不包含标题:
<?php if ($module->showtitle) { echo '<h2>' .$module->title .'</h2>'; } ?>
阅读更多信息
http://forum.joomla.org/viewtopic.php?f=469&t=289641