LESS Tips For Moar

I’ve used LESS for a little over two years now, and I just thought I’d share the things I’ve learnt about LESS that has helped me be more efficient and productive when working on the front-end. If you don’t need to nest, don’t. Nesting is a neat feature in LESS that allows for better code ...

Angular Date Parser

Lately I’ve been working a lot with date and time pickers, and it got me thinking, “Why doesn’t Angular come with some form of date and time parser that converts strings into a JavaScript Date object.” I mean, you could already convert Date objects into formatted strings using the Angular dateFilter, so why not the ...

Angular Timepicker Directive

I was searching for a simple timepicker directive, much like the one used in Google Calendar, for one of my projects. I couldn’t find any, so I built my own. Angular Timepicker Demo This directive creates a simple dropdown style timepicker, like the one used in Google Calendar. You can set the minimum and maximum ...

Scope Inheritance in AngularJS

As I continue my journey into the Angular world, I come across many new and awesome things. One very interesting thing Angular has got going for it is the use of scopes. Scope inheritance in Angular works very much like JavaScript’s prototypal inheritance. Child scopes have access to their respective parent scopes, changes in the ...

Display Mode Detection for Responsive Websites using AngularJS 10

I’ve recently started using AngularJS in a project I’m currently working on. So far, AngularJS has been great, and I’ve especially enjoyed building my own custom directives. Here’s one I’m using to determine the current display mode for responsive websites. angular.module('myApp', []) .directive('dnDisplayMode', function($window) { return { restrict: 'A', scope: { dnDisplayMode: '=' }, template: ...

Implementing Custom Checkbox List Property in EPiServer CMS 7 4

In one of my recent projects, I’ve had to implement a property that displays a list of checkboxes so the administrator could select an item to enable from the list of available options. I googled around for a bit and came across this article by Linus Ekström. This is my implementation. [EditorDescriptorRegistration(TargetType = typeof(string), UIHint ...

CacheManager for EPiServer CMS 7 Now Live! 11

Geta has just released an updated version of CacheManager for EPiServer CMS 7. It has been rebuilt from scratch to take advantage of ASP.NET MVC, now fully supported by EPiServer CMS. Features One-click cache clear - Clear EPiServer site cache with just one click. Selective cache entry deletion – Select and delete individual cache entries. ...

Adding Or Preserving Hash Values When Using Response.Redirect() For IE

I recently ran into a small problem in one of my projects. I have some code that would open up the user login UI when the URL contains a few specific parameters, which are defined as hash parameters. One of the tasks assigned to me needed me to redirect the user to the same page, ...

jQuery Cascading Dropdown Plugin Hits Version 1.2.0

Just a quick heads up, my jQuery Cascading Dropdown plugin is now updated! Here’s a list of changes. Added onReady event that gets triggered when all dropdowns are fully initialised, including dynamically loaded dropdowns. Added onChange event that gets triggered whenever a dropdown value changes. Added source option property for defining dropdown data source. This ...

Saving/loading EPiServer plugin configuration settings using DDS

I’m currently working on a small EPiServer plugin that requires the site admin to be able to save/load configuration settings from the Admin page. Fortunately, you can easily do this using EPiServer’s Dynamic Data Store (DDS), and it beats having to implement PlugInSettings that uses DataSets, which is just awfully painful to work with. Firstly, ...