Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Updating Page Settings Breaks Main Menu NavigationUpdating Page Settings Breaks Main Menu Navigation
Previous
 
Next
New Post
12/21/2012 12:27 PM
 
So here's what I've found... if you're using the NAV menu and your page has an entry in the TabSettings table with a SettingName of 'LinkNewWindow' (regardless if the SettingValue is True or False) then the page can't be clicked on.

If that database record exists then the code that generates the menu includes this bit of code for that menu item (among other info about the item (you can 'view source' on your website to see it)):
tar:\'_new\'

Then the dnn.js file that is throwing the actual error has a function called navigate. That navigate function checks to see if that tar value is not null and not empty. If so, it checks to see if that value is "_blank", otherwise it tries to access document.frames which causes the error. So "_new" isn't blank or null and it's not "_blank" so it tries to access document.frames, which obviously isn't correct.



So to fix the problem...
You can either delete all the rows in the TabSettings table of your database that have a SettingName of LinkNewWindow, then you have to restart IIS and all your pages will work until you create a new one or edit one.

OR

You can update your dnn.js file so that the first IF statement in the NAVIGATE function says this:

if (a != null && a.length > 0 && a != "_new")

but then if you do actually want any pages to open in a new window its not going to work.



ultimately I think the problem needs to be fixed with the Nav menu, but i'm not sure where those files are to do that
 
New Post
1/8/2013 4:57 AM
 

Based on what BJIRKA found, I have fixed it with these following steps:

1. Modify [dbo].[GetTabSettings] procedure to except the “LinkNewWindow” setting from the Tab Settings list by adding this piece of code and the end of the stored proc:

EXCEPT    

SELECT 'LinkNewWindow' as SettingName, 'False' as SettingValue

2.  Modify [dbo].[AddTabSetting] procedure to make sure it does not insert a duplicate SettingName into database when users update the Tab Settings.

DECLARE @count INT

SELECT @count = COUNT(*) FROM dbo.TabSettings WHERE TabID = @TabID AND SettingName = @SettingName

IF @count = 0
BEGIN
Original code goes here
END
ELSE
BEGIN
UPDATE dbo.TabSettings SET SettingValue = @SettingValue WHERE TabID = @TabID AND SettingName = @SettingName
END

3. Open “/js/dnn.js” file and modify the “navigate” function, like this:

if (a == "_blank") => if (a == "_blank" || a == "_new")

Finally, please Clear Cache on DNN site and that is it.

Cheers.

 
New Post
1/8/2013 2:39 PM
 
You can also change from using DNN Nav to the newer and better supported DDR Menu. In your skin file, just switch the provider name as illustrated here: http://www.dnngarden.com/Standard-DNN...

Rich Campbell
Engage : Your ideas, Our know-how
DNN Experts
St. Louis, MO
314.966.4000
 
New Post
2/28/2013 8:58 AM
 

I followed Tien's  suggestion and it solved  the issue on my installation  6.2.5.

 Thanks, Tien !

 
New Post
4/2/2013 4:45 AM
 

My menu items that were pointing to an external URL stopped working after changing any of it's properties.

I switched from ProviderName="DNNMenuNavigationProvider" to ProviderName="DDRMenuNavigationProvider" and it solved the issue.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Updating Page Settings Breaks Main Menu NavigationUpdating Page Settings Breaks Main Menu Navigation


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out