More in this section

Forums / Developing with Sitefinity / Default Navigation Widget open in new tab

Default Navigation Widget open in new tab

2 posts, 0 answered
  1. Dev
    Dev avatar
    18 posts
    18 Jan 2013
    23 Apr 2013
    Link to this post
    I am using the navigation widget which is available in the toolbox. I am using "custom selected pages" with vertical style. Is there a way to force some of the pages to open in a new tab. Literally all I am trying to do is add target ="_blank" in the anchor tag,
  2. Pavel Benov
    Pavel Benov avatar
    341 posts
    14 Mar 2016
    26 Apr 2013
    Link to this post

    For this one you will need to use an external navigation template (see Other options... section at the bottom) and you can subscribe to the ItemDataBound event of the control you're using on the template and set target blank to the tab/node/item (depending on the control again). For example:

    protected void RadSiteMap1_NodeDataBound(object sender, Telerik.Web.UI.RadSiteMapNodeEventArgs e)
                e.Node.Target = "_blank";

    All the best,
    Pavel Benov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered