简体   繁体   English

将Joomla菜单项页面加载到模块位置

[英]Load a Joomla menu-item pages into a module position

With Joomla it's possible to load modules into articles and even into other modules, but is it also possible to load menu-item pages into module positions? 使用Joomla可以将模块加载到文章中,甚至可以加载到其他模块中,但是还可以将菜单项页面加载到模块位置中吗?

For example, I have a menu item that shows the contact-list, in other words every person added in the contacts in the Joomla backend. 例如,我有一个菜单项显示联系人列表,换句话说,每个人都在Joomla后端的联系人中添加了。

I wish to show this contact-list not as an actual page, but within a module or other article, is there any way to achieve this? 我希望不将此联系列表显示为实际页面,而是在模块或其他文章中显示,有什么方法可以实现?

It is possible to add a module everywhere in Joomla. 可以在Joomla的任何地方添加模块。 Depending where you want to include it there are different approaches. 根据要包含它的位置,可以使用不同的方法。

If you want to add a module in an article you can use the loadmodule placeholder: {loadposition xx} //( where xx is the position) 如果要在文章中添加模块,则可以使用loadmodule占位符:{loadposition xx} //(其中xx是位置)

See this for more info http://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F 请参阅此以获得更多信息http://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F

Assuming that your contact list is generated within a component, you could also take a different approach by using two plug-ins: 假设您的联系人列表是在一个组件内生成的,那么您还可以通过使用两个插件来采用不同的方法:

Call the non-sef URL to the component from an article using the syntax used by Include Component. 使用包含组件使用的语法从文章中调用该组件的非安全URL。 Next, call the article within a module using the Articles Placed Anywhere module. 接下来,使用“放置在任何地方的文章”模块在模块中调用文章。

I was looking for an answer to the same question as you, which eventually pulled me in a different direction. 我一直在寻找与您相同的问题的答案,这最终使我朝着不同的方向发展。 I know your question was posted a long time ago, but I thought I'd answer it anyway. 我知道您的问题是很久以前发布的,但我认为我还是会回答的。 Perhaps it's just a partial answer, but I hope it helps. 也许这只是部分答案,但我希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM