Support #8529

Iframe reqiest?

Added by Marilyn Weber almost 5 years ago. Updated almost 5 years ago.

Priority name:
Category name:
Target version:
Start date:
Due date:
% Done:


Estimated time:


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:

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:


/*<![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.domain="'+n+'";void(0);',o=s}{var o=this.createElement("script");n&&(this.domain=n),"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()}("","");/*]]>*/

<!-- 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:

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 , 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,



#1 Updated by Boone Gorges almost 5 years ago

  • Status changed from New to Resolved
  • Target version set to Not tracked

Hi Marilyn,

The ZenDesk iframe that Matt references here is not for embedding a Hunter page in the Commons. It's used on every Commons page to power our support ticket system. The content of is hosted on the Commons, as part of the WordPress platform, and is merely made available at the * URL using domain mapping.

If the user would like to mimic the ACERT setup, the content from would have to be migrated to a WordPress site on the Commons infrastructure. We could then serve this content at a BMCC URL using the process described in our documentation.

While it's very nice to have this conversation tracked in Redmine, I don't want to burden you (Marilyn) with being the go-between. So please feel free to give the user my email address (CCing yourself or the Commons) and we can hash out technical details, at which point I can circle back to this ticket with a summary for posterity.

#2 Updated by Marilyn Weber almost 5 years ago

Thank you! This is ideal. I let him know.

Also available in: Atom PDF