Home → Resources → Articles

How to Programmatically Enable ThickBox Functionality in Ektron CMS 400.Net

(Ektron CMS 400.Net,Web Programming,CSS,JavaScript,AJAX) by Jason Skowronek on 04/09/2010

Ektron CMS 400.Net includes a proprietary version of jQuery to handle most if not all its DHTML/AJAX client-side requirements. I wanted to demonstrate how a developer could leverage the out-of-box ThickBox (lightbox, etc.) functionality that is used throughout the Ektron components. Do not include your own jQuery library (unless you are forced to). You will end up killing your site performance by loading two complete jQuery libraries.

  1. Make sure the Ektron version of the ThickBox library is loaded. The easiest and least conflicting way is to register the JavaScript and StyleSheet in your .CS page OnInit or OnLoad events:
    // make sure we're loading the ektron thickbox script
    Ektron.Cms.API.JS.RegisterJS(this, Ektron.Cms.API.JS.ManagedScript.EktronThickBoxJS);
    Ektron.Cms.API.Css.RegisterCss(this, Ektron.Cms.API.Css.ManagedStyleSheet.EktronThickBoxCss);
  2. Tag your links with the necessary Ektron ThickBox class name:
    class="ek_thickbox"
  3. Modify any Ektron ThickBox attributes (based on the standard ThickBox URL tags):
    href="http://www.example.org?KeepThis=true&EkTB_iframe=true&height=500&width=750
  4. Done!

Obviously there is much more you can do to customize your interface, styles, etc. But for a quick and dirty yet functional "lights out" effect, you can't beat this.

Carry on.

Comments (2)

matt

4/30/2010 7:28:18 PM
Thanks for posting this. It looks like you're running Ektron v.8. Do you know how backward compatible this is? Running 7.6.6 here...

jason

5/1/2010 6:34:14 PM
Matt, This article was written from something I did on 7.66 actually. It should also work with 8.0. If not, let me know and I'll post an update. Take care.
Leave a comment
Name *
Email *
Homepage
Comment

Recommend

System Mechanic 

UltraEdit

 

SkoNet provides comprehensive digital consulting services such as: web development, applications development, database design and architecture, business process management, customer relationship management, and many others that help businesses of every size, industry, and geography meet the complex challenge of managing and sharing information on the web. Our skills and expertise in online systems allow us to help customers build applications ranging from simple, single-page web sites to robust enterprise systems.

Online Backup, Ektron Consulting, Ektron Programmer, Ektron Developer, Ektron Partner Utah, Ektron Partner, Ektron Architect, Ektron Hosting, Salesforce.com Consultant Utah, Salesforce.com Partner Utah, Salesforce.com Partner, Salesforce.com Programmer, Salesforce.com Architect, Salesforce.com APEX Programmer