Portal Engine
Version 3.x > Portal Engine > Javascript command window.open & Site Map View modes: 
User avatar
Member
Member
GeneH - 2/16/2012 2:33:58 PM
   
Javascript command window.open & Site Map
Since 'Document Properties>Menu>URL Redirection' cannot be used to open a link in a new window (or a new tab), I've been using 'Document Properties>Menu>Javascript command' to accomplish the same thing for a few menu items (using empty placeholder documents).
window.open('http://www.myotherwebsite.com/','_blank','height=768,width=1024,left=0,top=0,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,directories=no,status=yes');return false;

Unfortunately, clicking on one of these redirected documents in the site map serves up a '403 Forbidden' error.
It seems this is happening because the site map is seeing as a link only "http://www.mywebsite.com/CMSWebParts/Navigation/#".
Because of this, I've had to uncheck 'Show on Sitemap' for these items.

I really need to get these these items back on the sitemap.
Can anyone help me resolve this please?

User avatar
Kentico Support
Kentico Support
kentico_janh - 2/17/2012 6:01:23 AM
   
RE:Javascript command window.open & Site Map
Hello,

Regrettably, this was a bug in version 3.x of Kentico CMS and it was fixed in some of a higer version, so you have two options here:

1) Use a CSS list menu web part for generating your site map (javascripts work there fine and the rendered structure is the same as in the site map)
2) Upgrade to a higher version

Best regards,
Jan Hermann