Project

General

Profile

Support #8529

Iframe reqiest?

Added by Marilyn Weber about 2 years ago. Updated about 2 years ago.

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

0%

Estimated time:

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

History

#1 Updated by Boone Gorges about 2 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 https://acert.hunter.cuny.edu is hosted on the Commons, as part of the WordPress platform, and is merely made available at the *.hunter.cuny.edu URL using domain mapping.

If the user would like to mimic the ACERT setup, the content from http://www.bmcc.cuny.edu/cetls/ 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 about 2 years ago

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

Also available in: Atom PDF