Joomla 3.3 文章 URL?

Joomla 3.3 Article URL?

我正在使用 Joomla 3.3 并且有很多文章。我的目标是让一篇文章的 URL 变成

www.mysite.com/menu-item/article

但是,现在当您点击一篇文章时,它会转到

www.mysite.com/(id)-article

并将您带到主页,而不是停留在菜单项页面上。我希望页面保留在菜单项的页面上,因为我有特定于页面的模块。

当我 Google 不太清楚时,我需要一些明确的帮助作为答案。

您需要为您的文章创建一个菜单项,因为它将用于创建 url。

…and takes you to the main page instead of staying on the menu item page. I'd like the page to stay on the menu item's page as I have page specific modules.

不,它不会将您带到主页(您可以通过查看浏览器中的 URL 来检查)但是因为 Joomla 模块是根据菜单项 ID 分配的,而没有菜单项 Joomla 使用默认页面(您的主页)的设置,因此您可以获得与主页上显示的相同的模块。

这两个问题的解决方案是为文章创建一个菜单项(或至少为其父类别创建一个菜单项以修复模块分配)。

How to control module display when linking to an article with no menu item.

中详细描述了问题以及如何处理这些问题