Archive

Posts Tagged ‘My Stuff’

CMS Framework – Update

August 16th, 2009 fbis No comments

Been a bit quiet round here lately but not because I’ve not been working on it ;) I’ve been using it for a project at work and converting a lot of my stuff to be compatible with it.  It’s running  a site atm and doing well.

Alpha State

Mainly in alpha because things may yet change but the following all work
Read more…

Categories: .net, Asp.Net, c#, cms Tags:

Creating a CMS Framework – Update

May 26th, 2009 fbis 2 comments

Spent this weekend working on the cms and made good progress. Got the core page rendering working with masterpages and themes. Tested it with Db and normal aspx pages. I’m wondering whether I’ve over abstracted everything atm!

Just added the security system and user accounts.  Now I’ve got to decide how to expose the account creation side of it. Normally I’ve done that through controls but I’m going to have to create a utility class that devs can use and create their own controls for.

Read more…

Categories: cms Tags:

Dealing with duplicates in SQL

May 21st, 2009 fbis No comments

Was explaining to a friend how to cope with duplicates today so thought I’d just stick a quick note up for him to refer too. Finding duplicates in SQL is relatively easy when dealing with one field, we just need to  count the number of occurances of the field: Read more…

Categories: SQL Tags:

Creating a CMS Framework – The Plan

May 18th, 2009 fbis No comments

I’ve now written 4 cms’ and have decided as a personal project to create a core system that can easily be adapted to many tasks.  Over the past 4 cms’ I’ve used the same code a lot and created a central core of utils (imaginatively called Gist!) but I want to go a step further and have a central system I can use straight off.

Read more…

Categories: Asp.Net, cms Tags:

Parse Paths in SQL

April 16th, 2009 fbis No comments

Just a couple of udf to handle paths in sql server, not very solid but if your paths are valid they work well.

CREATE FUNCTION dbo.GetFileName (@Path varchar(512))
RETURNS varchar(255) AS
BEGIN
	Return    RIGHT(@Path, LEN(@Path) - dbo.LAST_INDEX(@Path, '\'))
END

Read more…

Categories: SQL Tags:

JQuery carousel plugin

March 26th, 2009 fbis No comments

This is the start of a jQuery carousel. I’ve used a few carousels but they require a lot of css editing to get them to change widths etc. I wanted one that could easily adapt to displaying different numbers of items. It accepts a noOfItems config that defines how many items it displays and it adjusts it’s width accordingly. Early days but not bad for a few hours work :)

Read more…

Categories: JQuery Tags: ,