Dear Umbraco… I Can Haz Content?!

Basic mission; code not my own. Create an advert type; consisting of URL and Image. Additional requirement created setting the type of advert (using uComponents) An AdvertContainer (Doc Type) With two ‘types’ of advert (i.e. 3rdparty/mpu) ThirdParty contains JS (no image/URL) MPU contains Image/URL var nodes = GetMultiNodeSelection(1101, “adverts”); Foists off into some god awful … read on

Self Referencing Table Joins in FluentNHibernate

A common usage of the self-referencing joins is the use of 1 table for regions and subregions; its also the laziest example that comes to mind. Entity using System.Collections.Generic; using Domain.Base; public class Region : DomainObject<int, Region> { private IList<Region> _subRegion = new List<Region>(); public virtual string Name { get; set; } public virtual IList<Region> … read on

Using Umbraco Content Service outside of Umbraco context/control in Umbraco 6

In order to make user of IContentService outside of Umbraco Controllers/Views/etc you’re going to need to expose it. Much in the same way you’d setup NHibernate to create a session factory on application start we grab IContentService and make it accessible. In this case via UmbracoApplication.UmbContentService UmbracoApplication.cs namespace XXX.UI { using System.Web.Http; using System.Web.Mvc; using … read on

Faux Font and Text Rendering the future is nigh and its fuzzy

Note* This will only really be different for Windows/Linux users where font-aliasing isn’t a standard feature (like the mac); but seeing Windows is 95% of the market it’s worth it.   This is the standard font aliasing This is the faux-font aliasing using text shadow (using RGBA) text-shadow: 0px 0px 1px rgba(0,0,0,0); This is the … read on