As a way to migrate my existing ASP-Framed site to DNN I would like to be able to have specific DNN pages load in the content frame of my old site.
I have created a blank skin that works well and will display the page minus menues and navigation on my site.
So, If you navigate to a page on the old site, my page will show up in the frame without any problems.
Here is the difficult part: If someone creates a link to the DNN page it shows up without navigation and not in the frame.
I would like to force the specific page to load in the framed site.
Here is some code I have used on non-DNN pages to accomplish this:
<code>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
ok_urls = new Array();
ok_urls[1] = "http://www.mydomain.com/FramePage.asp";
ok_urls[2] = "http://mydomain.com/FramePage.asp";
url_found = 0;
for (var i = 1; i <= ok_urls.length && !url_found; i++) {
url_found = (parent.location.href.indexOf(ok_urls[i]) == -1);
}
if (!url_found || (window == top))
top.location.href = ok_urls[1] + "?action=" + window.location.href;
// End -->
</script>
</code>