Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Show Minimal Master in CRM iframe

$
0
0

Hello,

I've got a SharePoint 2013 (online) and a Dynamics CRM (online). I want to show a document library within a customer in an iframe. For this I have to allow framing. No problem.

The problem is I want to have a minimal.master in the IFrame at CRM but if I go to the SharePoint itself I want to use the seattle.master.

I have inserted a JavaScript that sets css styles for several controls (display:none). According to a request parameter the JavaScript code takes effect. This works realy fine.

Now the SharePoint itself causes trouble. If I want to click on "Edit Properties" in the context menu of a document an exception is thrown. In the sharing.js the code "window.top" is used. This can't work in an iframe.

So I see just two options

1. edit default code of SharePoint. I don't like it and I don't know how, because it is the online version

2. Tell the sharepoint to use another masterpage if a request parameter is true

Or does anyone knows another solution? How could it work?


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>