All posts for "Episerver"

How to Add Valid Elements (like iframes) to TinyMCE in EPiServer 7

on in Episerver, Episerver 7, TinyMCE with 0 Comments

In a recent EPiServer 7 project, our client needed support for iframes and some other HTML tags in the TinyMCE WYSIWYG editor. Luckily, the way you add valid elements to TinyMCE hasn’t changed much between EPiServer 6 and EPiServer 7, though some small issues have made the update a little more involved. In this post, I’ll show you how to add valid elements to TinyMCE and how to fix the issues you’ll potentially encounter along the way.

More ››

A Closer Look at the AvailablePageTypes Attribute in EPiServer 7

on in Episerver, Episerver 7 with 0 Comments

I was recently looking into how to fully use the [AvailablePageTypes] attribute in my page models, and after a bit of research and reading the sometimes confusing documentation, and the less confusing class documentation, I found it has some interesting and helpful features. Let’s take a closer look at this attribute.

More ››

Turn Your EPiServer 7 MVC Page/Block Model into a View Model using the Ignore Attribute

on in Episerver, Episerver 7, Episerver MVC with 0 Comments

If you’ve ever built a large MVC application, you’ll know that your project can sometimes contain a large amount of files, some of which act as a layer of code between two aspects of the application. One such file is the view model, which is used to transfer data from the controller to the view.

When developing with EPiServer 7 MVC, in most situations you can use the page or block model directly in your view. There are some cases, however, where you’ll find yourself using a separate view model to satisfy the needs of the view.

More ››

Working with Localization and Language Branches in EPiServer 7 MVC

on in Episerver, Episerver 7, Episerver MVC, Localization with 0 Comments

One powerful feature that EPiServer 7 provides is the localization of page content and the creation of language branches for your site, which allows you to create a multi-language, international site without the need for a huge amount of work. In this post, we’ll look at how to configure, utilize, and develop for localization in EPiServer 7.

More ››

Creating a XForm Block in EPiServer 7 MVC with Working Validation (Updated)

on in Episerver, Episerver 7, Episerver MVC, XForms with 0 Comments

I initially posted this solution on the Nansen blog, but since then the code has been updated for both bug fixes and to reduce unnecessary layers (at least, unnecessary for my situation).

With the flexibility that block types offer in EPiServer 7, it would make sense that one common feature that people would want is an XForm in a block, so editors can freely add, move, and reuse blocks with forms around their website. In a recent project, this was one of my requirements.

More ››