About/Contact

Steve Trefethen

Steve Trefethen is a Director of Engineering at Reply. Contact me

View my LinkedIn profile


Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?
$720 in referrals so far!


Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.



Building my blog Part IV: Creating a theme for dasBlog

November 27 2006 4:05PM

Like many people I wanted to add my own personal touch to my blog and creating a theme was high on my list. My first task was finding a simple CSS based layout that included the typical three columns, header and footer. Back in August of 2004, I blogged about a three column layout I'd created and thought it only appropriate to put it to real world use so if you reading this from my website the layout is pretty much the same one I posted two and a half years ago.

DasBlog is very easy to theme and you can use any HTML as your site template which provides a huge amount of flexibility not to mention it includes over 20 themes so there are lots of starting points. To create a new theme you'll need to do the following:

  • Create a new directory under the dasBlog's themes directory
  • Copy the files of an existing theme into the new directory
  • Tweak the various CSS and *.blogtemplate files to your liking
  • Edit SiteConfig\site.config and change the <theme> tag to the name of the directory you created above
  • Edit themes\yourthemename\theme.manifest and set the attributes of the <theme> tag accordingly.
I used some of the files from a theme called "dasblog" primarily because it has dasblog.css which defines CSS classes for all of the elements used in dasBlog which is a real time saver. Along with the HTML markup a dasBlog theme template contains macros which at runtime, render the various blog elements and appear like the following in your template:

<%newtelligence.search()%>

This particular macro renders the Search box in the upper right corner of my blog. Do worry though even though it's an ASP.NET application you really won't need ASP.NET experience to create your own theme. Another nice thing is that I've yet to run into a macro that doesn't allow for theming.

Where to get theme ideas

There are lots of resources on the web related to design, here a few that I look at for ideas:

If there is interest I'll make my site design available just let me know.

Reference: Part I, Part II, Part III

Update: Fixed Part III URL
FacebookDel.icio.usDigg It!

Comments (1) -

7/31/2008 1:43:12 PM #

can you email me your dag blog theme

martin lees

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading