简体   繁体   English

将rel =“ nofollow”添加到joomla菜单项

[英]Adding rel=“nofollow” to joomla menu item

I want to add the rel="nofollow" to the links on joomla menu item. 我想将rel="nofollow"添加到joomla菜单项上的链接。 This option is not available on administration backend. 此选项在管理后端上不可用。 The robot add the attribute "nofollow" to the meta data of the page on that menu item not the actual link. 机械手将属性“ nofollow”添加到该菜单项上的页面元数据,而不是实际链接。 Any help would be appreciated. 任何帮助,将不胜感激。

I'm using joomla 2.5 我正在使用joomla 2.5

You have to override method that show your menu items. 您必须重写显示菜单项的方法。 In website there is many articles about that. 网站上有很多关于此的文章。

You don't really need to add any parameters to your menu items, you can accomplish this by overriding your menu module. 您实际上不需要在菜单项中添加任何参数,您可以通过覆盖菜单模块来完成此操作。 In the menu module, check for the value of the robots parameter then add the appropriate rel to the link it creates. 在菜单模块中,检查robots参数的值,然后将适当的rel添加到它创建的链接中。

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

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