大家好,我是 joomla 的新手,我想使用代码在 header 中显示搜索模块

Hello Guys I am new in joomla and I want to display search module in header using code

你好,我是 Joomla 的新手,我需要帮助

我只想将我的新模块显示到我的 header.php 文件中 我尝试使用

但我在 header 中没有看到任何搜索表单。任何人都可以帮助我一步一步提前谢谢

注意: 使用默认搜索模块从我的 Joomla 管理员创建新模块新模块名称 = Header 搜索模块

您需要在要显示该模块的文件中使用 <jdoc:include type="modules" name="your-position-name" />。你试过这个吗?