简体   繁体   English

Joomla链接到类别列表

[英]Joomla link to category list

Hi all, I have encountered a problem with Joomla. 大家好,我遇到了Joomla问题。

There is a custom html module with link inside. 有一个带有链接的自定义html模块。 Link goes to menu item, which is category list. 链接转到菜单项,即类别列表。 As soon as I understand, I have to copy the following code from the link attribute of the menu item and paste it inside href. 据我所知,我必须从菜单项的link属性中复制以下代码并将其粘贴到href中。

index.php?option=com_content&view=category&id=12

But it doesn't work this way. 但是这种方式行不通。 The 404 Error Page appears. 出现404错误页面。

How to make this link work properly? 如何使此链接正常工作?

Thank you. 谢谢。

Create a menu item linking to the category list, then when you preview it in the frontend, right click the menu item and click "Copy Link Location". 创建一个链接到类别列表的菜单项,然后在前端对其进行预览时,右键单击该菜单项,然后单击“复制链接位置”。 Then paste the link within the href="" and remove the http://example.com bit so it starts with index.php?com_content...... 然后将链接粘贴到href=""并删除http://example.com位,使其以index.php?com_content......开头index.php?com_content......

The reason why I say this is because the url you are using must be incorrect. 我之所以这样说,是因为您使用的网址一定不正确。

Hope this helps. 希望这可以帮助。

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

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