Jeff Wallace
Mar 17, 2013
  6989
(1 votes)

iFrame Block

Based on EPiServer 7 and Alloy Templates

Have you ever needed to display some content on an EPiServer site in an iFrame? My colleague Bill Murray and I created a simple block for this purpose.

Configurable items include:

  • URL (required) – URL you would like to display in the iFrame
  • Heading – Heading for the information being displayed
  • Text  - Descriptive text for the information being displayed
  • Width – Width of the iFrame
  • Height – Height of the iFrame
  • Scrollable – Whether or not the iFrame should include scrollbars

Example of block configuration:

image

 

Example of block preview in the editorial interface:

image

Granted, this is not a real world scenario since I’m actually iFraming in a login page for Exact Target’s member site, I think it illustrates the point of the possibilities for usage.

I’ve uploaded the code to the EPiServer Nuget feed and it should appear there once approved. In the mean time you can get it here…

Enjoy!


  1. This is intended as a starting point for you to customize for your project needs. The code is provided “as is” without warranty or guarantee of operation. Use at your own risk.
  2. If you install on a site that does not include the Alloy Templates you should expect that you will need to make a few minor updates to get it working as desired.
Mar 17, 2013

Comments

Please login to comment.
Latest blogs
Optimizely Web Experimentation Metrics

Within the domain of Optimizely Web Experimentation Metrics, the emphasis is on objective key performance indicators (KPIs) selected to assess an...

Matthew Dunn | Sep 23, 2023 | Syndicated blog

Optimizely For you Intranet

Having been at Optimizely and in the CMS industry for nearly 16 years I have seen clients’ intranet requirements go from a simple site just to hous...

Robert Folan | Sep 22, 2023

Vulnerability in EPiServer.GoogleAnalytics v3 and v4

Introduction A potential security vulnerability was detected for Optimizely Google Analytics addon (including EPiServer.GoogleAnalytics and...

Bien Nguyen | Sep 20, 2023

Overriding Optimizely’s Content Recommendations Block to Implement Custom Recommendations

Introduction The Content Recommendations add-on for Optimizely CMS dynamically recommends content from your site tailored to the interests of each...

abritt | Sep 13, 2023 | Syndicated blog

Developer contest! Install the AI Assistant and Win Bose QC45 Headphones!

We are thrilled to announce a developer contest where you have the chance to win a pair of Bose Headphones. The goal is to be the first developer t...

Luc Gosso (MVP) | Sep 7, 2023 | Syndicated blog

Send Optimizely notifications with SendGrid API, not SMTP

If your Optimizely site already sends transaction emails through an email platform API, why not do the same with Optimizely notification emails?

Stefan Holm Olsen | Sep 6, 2023 | Syndicated blog