0

So, I have a dotNetNuke site that was developed by someone else. These developers are not available to respond to requests as fast as I need in this case, and I have to fix something on a customer's site ASAP.

Somehow, the Home link in the site's side nav is pointing to the Contact Us page. Not sure how this was done, but I have limited access to the backend of the site (what's there is a mess anyway).

I'm looking for a way to change the URL of the Home nav item only from http://www.mywebsite.com/subdir/ContactUs/tabid/2530/Default.aspx to http://www.mywebsite.com/subdir/. I've tried swapping out the text with JavaScript to no avail. Does anyone have any ideas?

Any help would be greatly appreciated. Let me know if you need more info.

4

3 回答 3

0

运行此 Jquery 代码将解决您的问题......但您的网站似乎有一些您应该解决的问题,而不是 JS 的绷带。

$('h1.logo a').attr('href','http://www.mydomain.com/subdir/');
于 2013-11-06T19:25:42.890 回答
0

正如 lostPixelx 所建议的那样,DotNetNuke 对链接工作做了一些修改。请将以下内容添加到 javascript

  $(function() {
    $('#tddnn_dnnMENU_ctldnnMENU2529').click(function(){self.location="http://www.mydomain.com/subdir/"})
    });
于 2013-11-06T20:12:30.640 回答
0

我建议您通过管理员/页面(页面管理)进入主页的页面设置。

从那里,在设置中的最后一个“选项卡”,靠近底部,您可以找到“URL”或“导航”部分,确保没有选择任何内容,然后保存页面设置。

于 2013-11-07T03:53:01.327 回答