Archive of EPiServer
-
Extending search field with suggestion box
Posted on September 17, 2009 by Frederik Vig in ASP.NET, Code Snippet, EPiServer, JavaScriptDisclaimer: In this example I've kept the code simple to make it easier to read and to give you an idea of how you might approach something like this with EPiServer. This code should not be used in production scenarios...
Continue reading this entry → -
Custom Property: ShareIt
Posted on September 7, 2009 by Frederik Vig in EPiServerYou've probably seen the addthis/sharethis toolbars on various sites that let you easily share a page on social media sites. I've made a custom property that allows editors to create their own, from a predefined list of sites...
Continue reading this entry → -
EPiServer web controls: MenuList and PageTree
Posted on August 16, 2009 by Frederik Vig in EPiServerBoth the MenuList and PageTree control are controls that you'll come across when building the navigation for your EPiServer site. Usually you'll start out with the MenuList for the main navigation, and use the PageTree for the sub...
Continue reading this entry → -
EPiServer web controls: NewsList
Posted on July 25, 2009 by Frederik Vig in EPiServerThe NewsList control differs from controls like the PageList, with its template options. It has four templates for the first four items. Which makes it good to use in situations where you need to have different code/markup for the...
Continue reading this entry → -
EPiServer web controls: PageList
Posted on July 20, 2009 by Frederik Vig in EPiServerThe PageList control is very similar to other data controls you're familiar with, like the Repeater. It has a few cool built in features that make it easier to use in certain scenarios. For instance, you can easily filter...
Continue reading this entry → -
EPiServer web controls: Property
Posted on July 5, 2009 by Frederik Vig in EPiServerIn this post we'll take a look at the EPiServer Property web control, which is one of the most used EPiServer web controls. You can find EPiServer Property's properties here. It is very likely that you've used it before, so...
Continue reading this entry → -
EPiServer filter – part 2: create your own filter
Posted on June 28, 2009 by Frederik Vig in Code Snippet, EPiServerIf you haven't, be sure to check out EPiServer filter - part 1. In one of my project I had a bunch of categories and needed to filter a PageDataCollection to find pages that had one or more of...
Continue reading this entry → -
EPiServer Extension Methods part 2
Posted on June 16, 2009 by Frederik Vig in EPiServerEPiServer Extension Methods part 1 From LinkItemCollection to PageDataCollection public static PageDataCollection ToPageDataCollection(this LinkItemCollection linkItemCollection) { var pageDataCollection = new PageDataCollection(); foreach (var linkItem in linkItemCollection) { var url = new UrlBuilder(linkItem.Href); bool isEPiServerPage =...
Continue reading this entry → -
EPiServer filter – part 1
Posted on May 28, 2009 by Frederik Vig in Code Snippet, EPiServerOften we need to filter some of the pages in our PageDataCollection. Perhaps we wish to only show the pages that are published or that the user has access to. For this EPiServer has a few filter classes. Below you'll...
Continue reading this entry → -
Master Pages and EPiServer CurrentPage property
Posted on May 20, 2009 by Frederik Vig in Code Snippet, EPiServerWhen you use user controls or web forms in your EPiServer web application you usually inherit from either UserControlBase or TemplatePage. Which gives you, among other things, the CurrentPage property. The problem is when you need the CurrentPage property in...
Continue reading this entry →
