Project

General

Profile

Actions

Support #8529

closed

Iframe reqiest?

Added by Marilyn Weber over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
-
Category name:
-
Target version:
Start date:
2017-08-15
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Boone - Sorry for the length. Not sure how to reply to the below:

Hi CUNY Commons support team,

My name is Matthew Conroy, a web developer at Borough of Manhattan Community College. We have a staff member who would like to use one of their CUNY Commons sites as a department website for our school. The staff member is previously from Hunter College where they had done this setup and would like the same configuration and arrangements as they previously enjoyed.

As I understand, their previous site from back when they were at Hunter is here:

http://acert.hunter.cuny.edu/

From the source code, I see they were using a Zendesk widget that creates an iframe inside the Hunter College page so that they can inject the Academic Commons page onto their own. This code is currently commented out.

Here is the source code excerpt:

<script>

/*<![CDATA[*/window.zEmbed||function(e,t){var n,o,d,i,s,a=[],r=document.createElement("iframe");window.zEmbed=function(){

a.push(arguments)},window.zE=window.zE||window.zEmbed,r.src="javascript:false",r.title="",r.role="presentation",(r.frameElement||r).style.cssText="display: none",d=document.getElementsByTagName("script"),d=d[d.length-1],d.parentNode.insertBefore(r,d),i=r.contentWindow,s=i.document;try{o=s}catch(c){n=document.domain,r.src='javascript:var d=document.open();d.domain="'+n+'";void(0);',o=s}o.open()._l=function(){var o=this.createElement("script");n&&(this.domain=n),o.id="js-iframe-async",o.src=e,this.t=+new Date,this.zendeskHost=t,this.zEQueue=a,this.body.appendChild(o)},o.write('<body onload="document._l();">'),o.close()}("https://assets.zendesk.com/embeddable_framework/main.js","cunycommons.zendesk.com");/*]]>*/

</script>
<!-- End of cunycommons Zendesk Widget script -->

I was also able to find on your help pages, that you are kind enough to do some domain name mapping for us on your side, if we were to desire this approach:

https://codex.commons.gc.cuny.edu/domain-mapping-commons/

We weren't sure how to best accommodate the staff member to match her experience previously. Would it be best to use the Zendesk widget or send you a url (the full url would be http://www.bmcc.cuny.edu/cetls/ , note that the base domain would still route to our usual homepage and its other branches)?

If the Zendesk widget is a better approach, could you point us to the area with the instructions for including the widget on one of our pages as I was unable to find it in my searching.

Thank you very much for your help,

Matt

Actions

Also available in: Atom PDF