Forum Discussion
Malene Friborg
Feb 20, 2018Iron Contributor
calendar web part on modern pages
Any chance we can get an ordinary calendar web part on our modern pages?
Events web part is not enough and the group calendar is only for, well, groups :-) We have the need for a modern page with ...
Joy_Stantec
Jan 18, 2019Copper Contributor
Hi! I have been using this code to embed my calendars. Last week it magically stopped working and now the left and top nav that should be cut off with the margins are showing.
Any idea how to fix this and/or why it changed? No code changed on my pages. One minute the iframe margins worked, and the next time I opened the page, the iframe margins weren't working anymore.
georg1
Jan 24, 2019Brass Contributor
I'm having this exact problem with my calendar. I'm yet to try the script solution posted here, but I found an interim solution on reddit which may help some here:
Add ?isdlg=1 or &isdlg=1 to the end of your embedded address/URL. This popped up a bit of a spacey calendar, but it's better than the whole page. Hopefully Microsoft fixes this problem properly soon.
- Josef HermesMay 27, 2019Copper Contributor
georg1 many thanks! This indeed did the job for us. So, in summary: we used the embed webpart with this iframe code:
<iframe src="https://company.sharepoint.com/sites/yoursite/Lists/agenda/calendar.aspx?isDlg=1" width="100%" height="800px"></iframe>
- georg1Jul 16, 2019Brass ContributorGlad it helped!
- Rajrup40Jun 24, 2019Copper Contributor
HIi Josef Hermes I've tried out the embed code, but I am getting too much white space with my calendar. Is there any work around so that there is no space at the bottom of the web part? and 1 more problem is if I click on red marked area whole top menu is appearing which I dont want and there is no way to close it. I had to refresh the page then only it ill disappear. Any idea how to resolve this?
- Josef HermesSep 03, 2019Copper Contributor
Rajrup40 I just discovered a different URL code, that seems to limit the white space and also seems to fix the menu problem. The URL extention is ?Minimized=true, so for example the embedded URL wil be
<iframe src="<a href="https://yourcompany.sharepoint.com/sites/site/Lists/Agenda/calendar.aspx?Minimized=true" target="_blank">https://yourcompany.sharepoint.com/sites/site/Lists/Agenda/calendar.aspx?Minimized=true</a>" width="100%" height="700px"></iframe>