What I would like to do is to place an item on the sitemap
that doesn't lead to a CRM page but would open www.MyNewPage.aspx
. I need to do this programmatically and an iFrame
in a CRM page is not what I'm looking for.
Is this possible?
Thanks
you can add html pages as webresources. You can make those webresources targets for sitemap entires like this in your sitemap, notice the url.
<SubArea Id="nav_yourlink" Url="$webresource:new_mynewpage.htm" Icon="$webresource:new_image.png">
<Titles>
<Title LCID="1033" Title="my title" />
</Titles>
<Descriptions>
<Description LCID="1033" Description="my descr"/>
</Descriptions>
</SubArea>
Then you can embed whatever javascript you want in that html page to launch your webpage. The two main ways to launch a new page from javascript:
window.location = 'www.mydomain.com/mypage.aspx'; // set the content INSIDE crm's content pane.
or (sounds like this one is what you want)
window.open('www.mydomain.com/mypage.aspx'); // open it in a new window, leaving CRM's content pane blank.